summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-05-19 22:59:33 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-05-19 22:59:33 +0000
commite4c4ea1e0f4485c84eaccc0beb8d2ef920ccc462 (patch)
tree4baf63440a06377a2094e469bd5632e7d2975a73 /src
parent1ba454ff4af3d2f7e813993d905d60666c296634 (diff)
downloadbcfg2-e4c4ea1e0f4485c84eaccc0beb8d2ef920ccc462.tar.gz
bcfg2-e4c4ea1e0f4485c84eaccc0beb8d2ef920ccc462.tar.bz2
bcfg2-e4c4ea1e0f4485c84eaccc0beb8d2ef920ccc462.zip
Fix tb in case of info.xml file failures
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4612 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 916927bfa..8c81e5839 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -558,6 +558,10 @@ class EntrySet:
else:
mdata = {}
self.infoxml.pnode.Match(metadata, mdata)
+ if 'Info' not in mdata:
+ logger.error("Failed to set metadata for file %s" % \
+ (entry.get('name')))
+ raise PluginExecutionError
[entry.attrib.__setitem__(key, value) \
for (key, value) in mdata['Info'][None].iteritems()]