diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py index e69cac6c5c..002d0e1fd6 100644 --- a/salt/modules/timezone.py +++ b/salt/modules/timezone.py @@ -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