summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-28 01:25:51 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-28 01:25:51 +0000
commit1e065eb039b75d8f36ccbd58bbeec71e699994bc (patch)
treead70e98f5ed4183f264a3352acac43bb783c0e76 /src/lib
parentc164473b3a064d3888075774fa532b2d14cd11a4 (diff)
downloadbcfg2-1e065eb039b75d8f36ccbd58bbeec71e699994bc.tar.gz
bcfg2-1e065eb039b75d8f36ccbd58bbeec71e699994bc.tar.bz2
bcfg2-1e065eb039b75d8f36ccbd58bbeec71e699994bc.zip
Fix a cosmetic traceback
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2888 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/SYSV.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/SYSV.py b/src/lib/Client/Tools/SYSV.py
index 002e7ae22..b540848fb 100644
--- a/src/lib/Client/Tools/SYSV.py
+++ b/src/lib/Client/Tools/SYSV.py
@@ -57,9 +57,12 @@ class SYSV(Bcfg2.Client.Tools.PkgTool):
(entry.get('version'), entry.get('name')))[0]
if cmdrc != 0:
- self.logger.debug("Package %s version incorrect: have %s want %s" \
- % (entry.get('name'), self.installed[entry.get('name')],
- entry.get('version')))
+ if entry.get('name') in self.installed:
+ self.logger.debug("Package %s version incorrect: have %s want %s" \
+ % (entry.get('name'), self.installed[entry.get('name')],
+ entry.get('version')))
+ else:
+ self.logger.debug("Package %s not installed" % (entry.get("name")))
else:
if self.setup['quick'] or entry.attrib.get('verify', 'true') == 'false':
return True