From 0ce2811c36bbf1b3f79fe25dda1b022b4916e8b4 Mon Sep 17 00:00:00 2001 From: Azidburn Date: Tue, 12 May 2015 20:09:18 +0200 Subject: [PATCH] Fix for #23604. No error reporting. Exitcode !=0 are ok --- salt/modules/systemd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/modules/systemd.py b/salt/modules/systemd.py index 7490123a2847..c3420b015a7d 100644 --- a/salt/modules/systemd.py +++ b/salt/modules/systemd.py @@ -359,7 +359,8 @@ def status(name, sig=None): ''' if _untracked_custom_unit_found(name) or _unit_file_changed(name): systemctl_reload() - return not __salt__['cmd.retcode'](_systemctl_cmd('is-active', name)) + return not __salt__['cmd.retcode'](_systemctl_cmd('is-active', name), + ignore_retcode=True) def enable(name, **kwargs):