summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-24 15:04:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-24 15:04:39 +0000
commitc9c418532cc15c3c1c914083867923bd74f644b6 (patch)
treea44adb0f1480a3ace7fc7f13802f937a24bac3ab /src/lib/Client
parenta5992cd38b9d3717338c3339df497a0b1427a549 (diff)
downloadbcfg2-c9c418532cc15c3c1c914083867923bd74f644b6.tar.gz
bcfg2-c9c418532cc15c3c1c914083867923bd74f644b6.tar.bz2
bcfg2-c9c418532cc15c3c1c914083867923bd74f644b6.zip
Cleanly detect unsupported entry types
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2106 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Toolset.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 6c602cbaf..fbf4ae7c4 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -220,6 +220,9 @@ class Toolset(object):
def VerifyEntry(self, entry, modlist = []):
'''Dispatch call to Verify<tagname> and save state in self.states'''
+ if not hasattr(self, "Verify%s" % (entry.tag)):
+ self.logger("Got unsupported entry type %s" % (entry.tag))
+ self.states[entry] = False
try:
method = getattr(self, "Verify%s" % (entry.tag))
# verify state and stash value in state