diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Probes.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Probes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py index 056521ce7..fd80cfbe4 100644 --- a/src/lib/Bcfg2/Server/Plugins/Probes.py +++ b/src/lib/Bcfg2/Server/Plugins/Probes.py @@ -141,7 +141,7 @@ class ProbeSet(Bcfg2.Server.Plugin.EntrySet): for (name, entry) in list(build.items()): probe = lxml.etree.Element('probe') - probe.set('name', name.split('/')[-1]) + probe.set('name', os.path.basename(name)) probe.set('source', self.plugin_name) probe.text = entry.data match = self.bangline.match(entry.data.split('\n')[0]) |