summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-01-29 16:05:34 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-01-29 16:05:34 +0000
commit9c7631f4c566a313aa61bbc67c3f1544ad2a4dcc (patch)
treeeba7788ec2a7032e30635283a665a6646d0e75a5 /src/lib
parent2fa3c8f5bdec91ea0c4fbdea46700c6ab628c7fe (diff)
downloadbcfg2-9c7631f4c566a313aa61bbc67c3f1544ad2a4dcc.tar.gz
bcfg2-9c7631f4c566a313aa61bbc67c3f1544ad2a4dcc.tar.bz2
bcfg2-9c7631f4c566a313aa61bbc67c3f1544ad2a4dcc.zip
Handle infoxml failure cases (reported in irc) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4304 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Cfg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index 424dd6c9d..11689f644 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -241,6 +241,10 @@ class ConfigFileEntry(object):
if hasattr(self, 'infoxml'):
mdata = {}
+ if not self.infoxml.pnode:
+ logger.error("Cfg: infoxml error for file %s" % \
+ (entry.get('name')))
+ raise Bcfg2.Server.Plugin.PluginExecutionError, ('infoxml', name)
self.infoxml.pnode.Match(metadata, mdata)
mdata = mdata['Info'][None]
else: