mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #36101 from sitepoint/adjtime_fix_fix
Check for RTC support via /dev/rtc (#4983)
This commit is contained in:
commit
2fddfe2887
@ -69,7 +69,7 @@ def _get_adjtime_timezone():
|
||||
if os.path.exists(adjtime_file):
|
||||
cmd = ['tail', '-n', '1', adjtime_file]
|
||||
return __salt__['cmd.run'](cmd, python_shell=False)
|
||||
elif os.path.exists('/etc/rtc'):
|
||||
elif os.path.exists('/dev/rtc'):
|
||||
raise CommandExecutionError(
|
||||
'Unable to get hwclock timezone from ' + adjtime_file
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user