summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-01-05 03:24:50 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-01-05 03:24:50 +0000
commita9388f7859586d5d98e815efdcf8d6a85b973bef (patch)
tree8adaf09fbd9cc5d4e3cd0dbf69ebcaade4577f76 /src/sbin
parentd3f79b55f57787a75773459dbc70a5504c7ddcf3 (diff)
downloadbcfg2-a9388f7859586d5d98e815efdcf8d6a85b973bef.tar.gz
bcfg2-a9388f7859586d5d98e815efdcf8d6a85b973bef.tar.bz2
bcfg2-a9388f7859586d5d98e815efdcf8d6a85b973bef.zip
This patch is stage 1 of the plugin capabilities rework
- define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-info2
-rwxr-xr-xsrc/sbin/bcfg2-server2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index bf88b1bfe..5c689489b 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -260,7 +260,7 @@ Usage: [quit|exit]"""
for etype, names in interested:
for name in [name for name in names if name in \
generator.Entries.get(etype, {})]:
- data.append((generator.__name__, etype, name))
+ data.append((generator.name, etype, name))
printTabular(data)
def do_event_debug(self, args):
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index b190a6e16..fed02bf6b 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -109,7 +109,7 @@ class Bcfg2Serv(Bcfg2.Component.Component):
meta = self.Core.build_metadata(name)
for plugin in [p for p in self.Core.plugins.values() \
- if isinstance(p, Bcfg2.Server.Plugin.ProbingPlugin)]:
+ if isinstance(p, Bcfg2.Server.Plugin.Probing)]:
for probe in plugin.GetProbes(meta):
resp.append(probe)
return tostring(resp, encoding='UTF-8', xml_declaration=True)