summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Metadata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index 814728025..177735264 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -104,6 +104,9 @@ class MetadataStore(SingleXMLFileBacked):
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])
+ if not self.images.has_key(image):
+ syslog(LOG_ERR, "Metadata: Image %s not defined" % image)
+ raise MetadataConsistencyError
toolset = self.images[image]
return Metadata(False, image, prof.classes, bundles, prof.attributes, client, toolset)