summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-12-31 13:33:56 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-12-31 13:33:56 +0000
commit388ae76f595adfa23b4b04f1a567d2cb66c684b3 (patch)
tree0f599d89d61e270f1c21306905320fdbe245883a /src/sbin
parentc354f9fce8ac6aa48166a64db0c317cab6af6c1e (diff)
downloadbcfg2-388ae76f595adfa23b4b04f1a567d2cb66c684b3.tar.gz
bcfg2-388ae76f595adfa23b4b04f1a567d2cb66c684b3.tar.bz2
bcfg2-388ae76f595adfa23b4b04f1a567d2cb66c684b3.zip
Fix client optargs
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4149 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg26
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 7b1faee1f..ef7bc59ad 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -7,6 +7,7 @@ import logging
import os
import signal
import socket
+import sys
import tempfile
import time
import xmlrpclib
@@ -68,9 +69,10 @@ class Client:
'key': Bcfg2.Options.SERVER_KEY,
}
- optparser = Bcfg2.Options.OptionParser(optinfo)
- self.setup = optparser.parse()
+ self.setup = Bcfg2.Options.OptionParser(optinfo)
+ self.setup.parse(sys.argv[1:])
+ print self.setup
level = 30
if self.setup['verbose']:
level = 20