Fix case when /etc/localtime is a file and it is not updated

This commit is contained in:
Andres Montalban 2017-02-21 14:37:30 -03:00
parent e4c71683d9
commit f0d3c16547

View file

@ -89,6 +89,8 @@ def _get_zone_etc_localtime():
return get_zonecode()
raise CommandExecutionError(tzfile + ' does not exist')
elif exc.errno == errno.EINVAL:
if 'FreeBSD' in __grains__['os_family']:
return get_zonecode()
log.warning(
tzfile + ' is not a symbolic link, attempting to match ' +
tzfile + ' to zoneinfo files'