diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-29 16:05:34 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-29 16:05:34 +0000 |
commit | 9c7631f4c566a313aa61bbc67c3f1544ad2a4dcc (patch) | |
tree | eba7788ec2a7032e30635283a665a6646d0e75a5 /src/lib | |
parent | 2fa3c8f5bdec91ea0c4fbdea46700c6ab628c7fe (diff) | |
download | bcfg2-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.py | 4 |
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: |