summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-test
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-01-16 13:28:06 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-01-17 12:55:52 -0500
commit9be9cfec322518f764be9766b27d24132fc6a66f (patch)
treee7d1f419fe90c1ef1069446a67a7ace754df95de /src/sbin/bcfg2-test
parent68804df4b5ccc251c788a99b5682bb9aba973cb9 (diff)
downloadbcfg2-9be9cfec322518f764be9766b27d24132fc6a66f.tar.gz
bcfg2-9be9cfec322518f764be9766b27d24132fc6a66f.tar.bz2
bcfg2-9be9cfec322518f764be9766b27d24132fc6a66f.zip
added module-level OptionParser to avoid passing it as an argument or global all over
Diffstat (limited to 'src/sbin/bcfg2-test')
-rwxr-xr-xsrc/sbin/bcfg2-test4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-test b/src/sbin/bcfg2-test
index 815d2740c..a708a233a 100755
--- a/src/sbin/bcfg2-test
+++ b/src/sbin/bcfg2-test
@@ -69,7 +69,7 @@ def main():
validate=Bcfg2.Options.CFG_VALIDATION)
optinfo.update(Bcfg2.Options.CLI_COMMON_OPTIONS)
optinfo.update(Bcfg2.Options.SERVER_COMMON_OPTIONS)
- setup = Bcfg2.Options.OptionParser(optinfo)
+ setup = Bcfg2.Options.get_option_parser(args=optinfo)
setup.hm = \
"bcfg2-test [options] [client] [client] [...]\nOptions:\n %s" % \
setup.buildHelpMessage()
@@ -78,7 +78,7 @@ def main():
if setup['verbose']:
Bcfg2.Logger.setup_logging("bcfg2-test", to_syslog=setup['syslog'])
- core = Bcfg2.Server.Core.BaseCore(setup)
+ core = Bcfg2.Server.Core.BaseCore()
ignore = dict()
for entry in setup['test_ignore']: