mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix case when /etc/localtime is a file and it is not updated
This commit is contained in:
parent
e4c71683d9
commit
f0d3c16547
1 changed files with 2 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue