summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2011-01-23 11:36:31 -0600
committerTim Laszlo <tim.laszlo@gmail.com>2011-01-23 11:36:31 -0600
commit8106d1b4fafa34d36b2984a5334d40789a6aab49 (patch)
tree885b61d29775af9f2019a306131d9ee50089dce8 /src/lib
parent98643130324d5523e2c819a0d6499ff88e5a6673 (diff)
downloadbcfg2-8106d1b4fafa34d36b2984a5334d40789a6aab49.tar.gz
bcfg2-8106d1b4fafa34d36b2984a5334d40789a6aab49.tar.bz2
bcfg2-8106d1b4fafa34d36b2984a5334d40789a6aab49.zip
Metadata: Raise MetadataConsistencyError when set_profile fails
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Metadata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index fde0ab77c..fb7455a4c 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -473,6 +473,7 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
else:
"""Try to find the client in included files"""
self.logger.error("Metadata: Unable to update profile for client %s. Use of Xinclude?" % client)
+ raise MetadataConsistencyError
else:
self.logger.info("Creating new client: %s, profile %s" % \
(client, profile))