summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-08-31 21:37:18 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-08-31 21:37:18 +0000
commit1bfc5e7904847d0f471e468ecdaad7ea26d140a8 (patch)
tree4e7f26e89e7736a3f8f3defdbc62a6c7b5b744bd /src/lib
parent0da475e1c239babc43da878cdef495226d8df258 (diff)
downloadbcfg2-1bfc5e7904847d0f471e468ecdaad7ea26d140a8.tar.gz
bcfg2-1bfc5e7904847d0f471e468ecdaad7ea26d140a8.tar.bz2
bcfg2-1bfc5e7904847d0f471e468ecdaad7ea26d140a8.zip
add default fetch to handle poorly constructed configs
(Logical change 1.291) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1162 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index 177735264..97d9b14dd 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -103,7 +103,7 @@ class MetadataStore(SingleXMLFileBacked):
raise MetadataConsistencyError
prof = self.profiles[profile]
# should we uniq here? V
- bundles = reduce(lambda x, y:x + y, [self.classes.get(cls) for cls in prof.classes])
+ bundles = reduce(lambda x, y:x + y, [self.classes.get(cls, []) for cls in prof.classes])
if not self.images.has_key(image):
syslog(LOG_ERR, "Metadata: Image %s not defined" % image)
raise MetadataConsistencyError