diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-11-03 23:41:12 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-11-03 23:41:12 +0000 |
commit | a6a57ac9af207b8128e3cc575a18cbe506232d3a (patch) | |
tree | 8404dd36e03d69b3417c0545feb3dd1ff90987b6 /src/lib/Client/Tools/__init__.py | |
parent | b675fc60be84b2300a37a62752347b5a233e1e1f (diff) | |
download | bcfg2-a6a57ac9af207b8128e3cc575a18cbe506232d3a.tar.gz bcfg2-a6a57ac9af207b8128e3cc575a18cbe506232d3a.tar.bz2 bcfg2-a6a57ac9af207b8128e3cc575a18cbe506232d3a.zip |
Implement data collection on incomplete entry path for POSIX
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3911 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/__init__.py')
-rw-r--r-- | src/lib/Client/Tools/__init__.py | 8 |
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 |