diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-26 09:48:58 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-26 10:05:22 -0400 |
commit | aeddf10f2e129c70b182e91b727ccc8028e3fd45 (patch) | |
tree | 2213bf1a27912b75a7b160a0b2494acee052be19 /src/lib/Bcfg2/Client/Tools/SMF.py | |
parent | be0e43af56fbd56dbb3f8d0266503e7b820f2c11 (diff) | |
download | bcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.tar.gz bcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.tar.bz2 bcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.zip |
made full pylint checks the default, expanded pylint coverage to lots of tools
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/SMF.py')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/SMF.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/SMF.py b/src/lib/Bcfg2/Client/Tools/SMF.py index 3e0a9da13..43e4b3bf5 100644 --- a/src/lib/Bcfg2/Client/Tools/SMF.py +++ b/src/lib/Bcfg2/Client/Tools/SMF.py @@ -104,7 +104,7 @@ class SMF(Bcfg2.Client.Tools.SvcTool): cmdrc = 1 else: srvdata = self.cmd.run("/usr/bin/svcs -H -o STA %s" % - entry.get('FMRI'))[1] [0].split() + entry.get('FMRI'))[1][0].split() if srvdata[0] == 'MNT': cmdarg = 'clear' else: @@ -126,7 +126,8 @@ class SMF(Bcfg2.Client.Tools.SvcTool): self.cmd.run("/usr/bin/svcs -a -H -o FMRI,STATE")[1]] if version != 'disabled'] - [allsrv.remove(svc.get('FMRI')) for svc in self.getSupportedEntries() \ - if svc.get("FMRI") in allsrv] + for svc in self.getSupportedEntries(): + if svc.get("FMRI") in allsrv: + allsrv.remove(svc.get('FMRI')) return [Bcfg2.Client.XML.Element("Service", type='smf', name=name) \ for name in allsrv] |