mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update utils path for which function to new path
This commit is contained in:
parent
398cc78224
commit
0733fa1b02
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue