summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-07-21 16:52:24 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-07-21 16:52:24 +0000
commit266e94c5f85b68eaeb8d546d97244f2b88272842 (patch)
tree0978f812a79c39bc68aa4396d68a5ca53b1e31c1
parentf74a2d07136831eda27553bc8682de846e65014f (diff)
downloadbcfg2-266e94c5f85b68eaeb8d546d97244f2b88272842.tar.gz
bcfg2-266e94c5f85b68eaeb8d546d97244f2b88272842.tar.bz2
bcfg2-266e94c5f85b68eaeb8d546d97244f2b88272842.zip
Fix ConfigFile verification of unbound entries (Resolves ticket #79)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1989 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Toolset.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 8c53fff3f..a02d11a92 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -369,6 +369,9 @@ class Toolset(object):
elif entry.get('empty', 'false') == 'true':
tempdata = ''
else:
+ if entry.text == None:
+ self.logger.error("Cannot verify incomplete ConfigFile %s" % (entry.get('name')))
+ return False
tempdata = entry.text
try: