summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
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__)