Merge pull request #36101 from sitepoint/adjtime_fix_fix

Check for RTC support via /dev/rtc (#4983)
This commit is contained in:
Mike Place 2016-09-07 23:56:44 +09:00 committed by GitHub
commit 2fddfe2887

View File

@ -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
)