From 5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa Mon Sep 17 00:00:00 2001 From: Robert Gogolok Date: Fri, 2 May 2008 22:43:39 +0000 Subject: fix reading options git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4589 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-ping-sweep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sbin') 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")] -- cgit v1.2.3-1-g7c22