summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/Systemd.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-09-11 12:14:01 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-09-11 12:14:01 -0500
commite2e8e3e906789a29f2847e68cc9aac9f79e5c613 (patch)
tree61ef2abc1f4e4ee30517e90b9818b6304014688c /src/lib/Bcfg2/Client/Tools/Systemd.py
parent4967dd6ae20f24daee8ce2b599b8a39ad15b88df (diff)
downloadbcfg2-e2e8e3e906789a29f2847e68cc9aac9f79e5c613.tar.gz
bcfg2-e2e8e3e906789a29f2847e68cc9aac9f79e5c613.tar.bz2
bcfg2-e2e8e3e906789a29f2847e68cc9aac9f79e5c613.zip
Rules: Implement status='ignore' for all service types
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/Systemd.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/Systemd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/Systemd.py b/src/lib/Bcfg2/Client/Tools/Systemd.py
index a295bc608..43eca2eac 100644
--- a/src/lib/Bcfg2/Client/Tools/Systemd.py
+++ b/src/lib/Bcfg2/Client/Tools/Systemd.py
@@ -17,6 +17,9 @@ class Systemd(Bcfg2.Client.Tools.SvcTool):
def VerifyService(self, entry, _):
"""Verify Service status for entry."""
+ if entry.get('status') == 'ignore':
+ return True
+
cmd = "/bin/systemctl status %s.service " % (entry.get('name'))
raw = ''.join(self.cmd.run(cmd)[1])