summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-12 17:00:53 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-12 17:00:53 +0000
commit44550e33cca1698d2284be11989dfdd10c7a1777 (patch)
tree0eb23542c4bc85fe2c27095d00fd9e5ad72e81ca /src/lib/Server
parenta6b556807a0012aaadbeb5a58ee9482d33f782d6 (diff)
downloadbcfg2-44550e33cca1698d2284be11989dfdd10c7a1777.tar.gz
bcfg2-44550e33cca1698d2284be11989dfdd10c7a1777.tar.bz2
bcfg2-44550e33cca1698d2284be11989dfdd10c7a1777.zip
Fix probes for _all_ plugins
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2590 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Metadata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 3d9854dd3..1f442feed 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -209,7 +209,8 @@ class Metadata(Bcfg2.Server.Plugin.Plugin):
ret = []
if self.probes:
bangline = re.compile('^#!(?P<interpreter>(/\w+)+)$')
- for name, entry in [x for x in self.probes.entries.iteritems() if x.data]:
+ for name, entry in [(name, entry) for name, entry in \
+ self.probes.entries.iteritems() if entry.data]:
probe = lxml.etree.Element('probe')
probe.set('name', name )
probe.set('source', self.__name__)