mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #35872 from amontalban/fix_35869_20163
Fixes #35869 for branch 2016.3
This commit is contained in:
commit
f3ac4e4293
@ -85,6 +85,8 @@ def _get_zone_etc_localtime():
|
||||
return olson_name[tzdir_len:]
|
||||
except OSError as exc:
|
||||
if exc.errno == errno.ENOENT:
|
||||
if 'FreeBSD' in __grains__['os_family']:
|
||||
return get_zonecode()
|
||||
raise CommandExecutionError(tzfile + ' does not exist')
|
||||
elif exc.errno == errno.EINVAL:
|
||||
log.warning(
|
||||
|
Loading…
Reference in New Issue
Block a user