diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-03-26 14:06:03 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-03-26 09:07:30 -0500 |
commit | 5ee259750bbef505378a1fc342c518b9a08540d5 (patch) | |
tree | 180c2c19929f39811a9d45c5a8663c0996f5db95 /src/lib/Client | |
parent | d3967b3d405c970c1ddefaa15aa70c3ec85cc72f (diff) | |
download | bcfg2-5ee259750bbef505378a1fc342c518b9a08540d5.tar.gz bcfg2-5ee259750bbef505378a1fc342c518b9a08540d5.tar.bz2 bcfg2-5ee259750bbef505378a1fc342c518b9a08540d5.zip |
Removed unnecessary variable. Fixed usage of uninitialized variable.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5799 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/RcUpdate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/RcUpdate.py b/src/lib/Client/Tools/RcUpdate.py index fcb0cd535..0a556ef2d 100644 --- a/src/lib/Client/Tools/RcUpdate.py +++ b/src/lib/Client/Tools/RcUpdate.py @@ -59,15 +59,15 @@ class RcUpdate(Bcfg2.Client.Tools.SvcTool): # make sure it's enabled cmd = '/sbin/rc-update add %s default' rc = self.cmd.run(cmd % entry.get('name'))[0] - status = (rc == 0) + return (rc == 0) elif entry.get('status') == 'off': # make sure it's disabled cmd = '/sbin/rc-update del %s default' rc = self.cmd.run(cmd % entry.get('name'))[0] - status = (rc == 0) + return (rc == 0) - return status + return False def FindExtra(self): '''Locate extra rc-update Services''' |