summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-04-06 19:05:36 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-04-06 19:05:36 +0000
commit41f26293cd4cbf7bf0284ce1c7c9bc45dafb21d9 (patch)
tree148b189c27697a02f2889c9ca397b4dfb31fefbe
parentc80602d06c7d593f6311712ca6205f660ee04f86 (diff)
downloadbcfg2-41f26293cd4cbf7bf0284ce1c7c9bc45dafb21d9.tar.gz
bcfg2-41f26293cd4cbf7bf0284ce1c7c9bc45dafb21d9.tar.bz2
bcfg2-41f26293cd4cbf7bf0284ce1c7c9bc45dafb21d9.zip
Fix service status verification issue reported by mbrady
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3021 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/Chkconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index c551d6134..0ef0b46ea 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -34,9 +34,9 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
entry.get('name'))[0]
# chkconfig/init.d service
if entry.get('status') == 'on':
- status = (len(onlevels) > 0 ) and pstatus
+ status = (len(onlevels) > 0 ) and not pstatus
else:
- status = (len(onlevels) == 0) and not pstatus
+ status = (len(onlevels) == 0) and pstatus
if not status:
if entry.get('status') == 'on':