Update utils path for which function to new path

This commit is contained in:
rallytime 2018-06-15 16:54:16 -04:00
parent 398cc78224
commit 0733fa1b02
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -496,7 +496,7 @@ def set_hwclock(clock):
salt '*' timezone.set_hwclock UTC
'''
if salt.utils.which('timedatectl'):
if salt.utils.path.which('timedatectl'):
cmd = ['timedatectl', 'set-local-rtc',
'true' if clock == 'localtime' else 'false']
return __salt__['cmd.retcode'](cmd, python_shell=False) == 0