diff options
author | Robert Gogolok <gogo@cs.uni-sb.de> | 2008-05-02 22:43:39 +0000 |
---|---|---|
committer | Robert Gogolok <gogo@cs.uni-sb.de> | 2008-05-02 22:43:39 +0000 |
commit | 5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa (patch) | |
tree | 421acdf69f01ae24a0d84bf34d5b7abaf639699d /src/sbin/bcfg2-ping-sweep | |
parent | e07c7c13b51bd54ea1ca48fa1cfd9e24cebc29e7 (diff) | |
download | bcfg2-5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa.tar.gz bcfg2-5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa.tar.bz2 bcfg2-5bc7ef3071c4e9dff2de1b7221ba06d0974b80fa.zip |
fix reading options
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4589 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-ping-sweep')
-rwxr-xr-x | src/sbin/bcfg2-ping-sweep | 4 |
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")] |