summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/__init__.py')
-rw-r--r--src/lib/Client/Tools/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index d44356f9b..79d273fb3 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -164,6 +164,11 @@ class Tool:
if not self.handlesEntry(entry):
return False
+ if 'failure' in entry.attrib:
+ self.logger.error("Entry %s:%s reports bind failure: %s" % \
+ (entry.tag, entry.get('name'), entry.get('failure')))
+ return False
+
missing = [attr for attr in self.__req__[entry.tag] \
if attr not in entry.attrib]
if missing:
@@ -188,6 +193,11 @@ class Tool:
if not self.handlesEntry(entry):
return False
+ if 'failure' in entry.attrib:
+ self.logger.error("Cannot install entry %s:%s with bind failure" % \
+ (entry.tag, entry.get('name')))
+ return False
+
missing = [attr for attr in self.__ireq__[entry.tag] \
if attr not in entry.attrib or not entry.attrib[attr]]
if missing: