diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py index 8b00ac1f8f4c..8e64e07e2d0f 100644 --- a/salt/modules/timezone.py +++ b/salt/modules/timezone.py @@ -51,7 +51,7 @@ def _timedatectl(): """ get the output of timedatectl """ - ret = __salt__["cmd.run_all"](["timedatectl"], python_shell=False) + ret = __salt__["cmd.run"]("timedatectl", python_shell=False) if ret["retcode"] != 0: msg = "timedatectl failed: {}".format(ret["stderr"])