diff options
author | John Morris <john@zultron.com> | 2012-09-10 17:46:06 -0500 |
---|---|---|
committer | John Morris <john@zultron.com> | 2012-09-11 16:11:48 -0500 |
commit | 9f177baaff0d5ea21a8655847ebd35bdd5a7db96 (patch) | |
tree | d7a2b371b7f24bf723b0357049e13d5b8f4e489d /src/lib | |
parent | 2b9d8b5e93b91063db6d4b6cde613c2d172362e3 (diff) | |
download | bcfg2-9f177baaff0d5ea21a8655847ebd35bdd5a7db96.tar.gz bcfg2-9f177baaff0d5ea21a8655847ebd35bdd5a7db96.tar.bz2 bcfg2-9f177baaff0d5ea21a8655847ebd35bdd5a7db96.zip |
Bcfg2/Client/Tools/Chkconfig.py: squash bug tickled by services turned 'off'
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/Chkconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/Chkconfig.py b/src/lib/Bcfg2/Client/Tools/Chkconfig.py index ad9e58350..29ec5dec9 100644 --- a/src/lib/Bcfg2/Client/Tools/Chkconfig.py +++ b/src/lib/Bcfg2/Client/Tools/Chkconfig.py @@ -70,7 +70,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool): self.logger.info("Installing Service %s" % (entry.get('name'))) rv = True if entry.get('status') == 'off': - rv &= self.cmd.run(rcmd + " --level 0123456" % + rv &= self.cmd.run((rcmd + " --level 0123456") % (entry.get('name'), entry.get('status')))[0] == 0 if entry.get("current_status") == "on": |