diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-08-24 15:04:39 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-08-24 15:04:39 +0000 |
commit | c9c418532cc15c3c1c914083867923bd74f644b6 (patch) | |
tree | a44adb0f1480a3ace7fc7f13802f937a24bac3ab /src | |
parent | a5992cd38b9d3717338c3339df497a0b1427a549 (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Client/Toolset.py | 3 |
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 |