mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Update utils path for which function to new path
This commit is contained in:
parent
398cc78224
commit
0733fa1b02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user