summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-01-18 21:41:11 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-01-18 21:41:11 +0000
commiteaa1b0613155510a984a2c33da358de497c04375 (patch)
treefd712b82ac014b34a7e16d67c0a0f5b007368bd8 /src/sbin
parentf39f7d1fe973f8aae5059abd7b471a285a43dcb7 (diff)
downloadbcfg2-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-xsrc/sbin/bcfg2-repo-validate8
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"),