summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
commit0175a00ca90ce0da9e53fc3459458f786a991f98 (patch)
treef1eeaf27e358bc8c251ec95d3f0219c056892260
parentc9c10731636166179fbd22b827edc0e55eede2b8 (diff)
downloadbcfg2-0175a00ca90ce0da9e53fc3459458f786a991f98.tar.gz
bcfg2-0175a00ca90ce0da9e53fc3459458f786a991f98.tar.bz2
bcfg2-0175a00ca90ce0da9e53fc3459458f786a991f98.zip
improve error message
(Logical change 1.236) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@989 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Redhat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py
index 603a172c1..6c409e455 100644
--- a/src/lib/Client/Redhat.py
+++ b/src/lib/Client/Redhat.py
@@ -68,8 +68,8 @@ class Redhat(Toolset):
def VerifyPackage(self, entry, modlist):
'''Verify Package status for entry'''
- if not (entry.get('name') and entry.get('version')):
- print "Can't install package, not enough data."
+ if not entry.get('version'):
+ print "Can't install package %s, not enough data." % (entry.get('name'))
return False
instp = Popen4("rpm -qi %s-%s" % (entry.get('name'), entry.get('version')))
istat = instp.poll()