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__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index ed8649082..663fa3433 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -152,6 +152,10 @@ class Tool:
return [sentry.get('name') for sentry in struct if sentry.tag in \
['ConfigFile', 'SymLink', 'Directory', 'Permissions']]
+ def gatherCurrentData(self, entry):
+ '''Default implementation of the information gathering routines'''
+ pass
+
def canVerify(self, entry):
'''test if entry has enough information to be verified'''
if not self.handlesEntry(entry):
@@ -164,6 +168,10 @@ class Tool:
% (entry.tag, entry.get('name')))
self.logger.error("\t... due to absense of %s attribute(s)" % \
(":".join(missing)))
+ try:
+ self.gatherCurrentData(entry)
+ except:
+ self.logger.error("Unexpected error in gatherCurrentData", exc_info=1)
return False
return True