summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-ping-sweep
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin/bcfg2-ping-sweep')
-rwxr-xr-xsrc/sbin/bcfg2-ping-sweep4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-ping-sweep b/src/sbin/bcfg2-ping-sweep
index a2aa02048..54c645277 100755
--- a/src/sbin/bcfg2-ping-sweep
+++ b/src/sbin/bcfg2-ping-sweep
@@ -15,8 +15,8 @@ if __name__ == '__main__':
setup = Bcfg2.Options.OptionParser(opts)
setup.parse(sys.argv[1:])
- cfpath = opts['configfile']
- clientdatapath = "%s/Metadata/clients.xml" % opts['repo']
+ cfpath = setup['configfile']
+ clientdatapath = "%s/Metadata/clients.xml" % setup['repo']
clientElement = lxml.etree.parse(clientdatapath)
hostlist = [client.get('name') for client in clientElement.findall("Client")]