diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-18 21:41:11 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-18 21:41:11 +0000 |
commit | eaa1b0613155510a984a2c33da358de497c04375 (patch) | |
tree | fd712b82ac014b34a7e16d67c0a0f5b007368bd8 /src/sbin | |
parent | f39f7d1fe973f8aae5059abd7b471a285a43dcb7 (diff) | |
download | bcfg2-eaa1b0613155510a984a2c33da358de497c04375.tar.gz bcfg2-eaa1b0613155510a984a2c33da358de497c04375.tar.bz2 bcfg2-eaa1b0613155510a984a2c33da358de497c04375.zip |
Fix option parsing for bcfg2-repo-validate
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4264 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2-repo-validate | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate index 09abcba98..4f1e60e08 100755 --- a/src/sbin/bcfg2-repo-validate +++ b/src/sbin/bcfg2-repo-validate @@ -14,12 +14,12 @@ if __name__ == '__main__': 'configfile': Bcfg2.Options.CFILE} setup = Bcfg2.Options.OptionParser(opts) setup.parse(sys.argv[1:]) - verbose = opts['verbose'] - cpath = opts['configfile'] - prefix = opts['prefix'] + verbose = setup['verbose'] + cpath = setup['configfile'] + prefix = setup['prefix'] schemadir = "%s/share/bcfg2/schemas" % (prefix) os.chdir(schemadir) - repo = opts['repo'] + repo = setup['repo'] filesets = {'metadata':("%s/Metadata/groups.xml", "%s/metadata.xsd"), 'clients':("%s/Metadata/clients.xml", "%s/clients.xsd"), |