summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-01-16 03:49:47 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-01-16 03:49:47 +0000
commited4ac10a78038a4d748e5076e6dec49437301281 (patch)
tree00ca45b688ceb20b4c43e0ca52a03b58d7c89525
parent0379981b07c8bc3f34db2145b7a2df05675a5d9f (diff)
downloadbcfg2-ed4ac10a78038a4d748e5076e6dec49437301281.tar.gz
bcfg2-ed4ac10a78038a4d748e5076e6dec49437301281.tar.bz2
bcfg2-ed4ac10a78038a4d748e5076e6dec49437301281.zip
Check for null attributes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4243 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 663fa3433..c4427b25e 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -186,7 +186,7 @@ class Tool:
return False
missing = [attr for attr in self.__ireq__[entry.tag] \
- if attr not in entry.attrib]
+ if attr not in entry.attrib or not entry.attrib[attr]]
if missing:
self.logger.error("Incomplete information for entry %s:%s; cannot install" \
% (entry.tag, entry.get('name')))