git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split config.py and parser.py into two modules. updated all files to use the
[monitor.git]
/
diagnose.py
diff --git
a/diagnose.py
b/diagnose.py
index
4e25974
..
ca4345e
100755
(executable)
--- a/
diagnose.py
+++ b/
diagnose.py
@@
-15,9
+15,8
@@
import Queue
from sets import Set
# Global config options
from sets import Set
# Global config options
-from config import config
-from optparse import OptionParser
-parser = OptionParser()
+import parser as parsermodule
+parser = parsermodule.getParser()
parser.set_defaults(nodelist=None,
refresh=False,
parser.set_defaults(nodelist=None,
refresh=False,
@@
-39,8
+38,7
@@
parser.add_option("", "--ticketlist", dest="ticketlist",
parser.add_option("", "--blacklist", dest="blacklist",
help="Blacklist all nodes in this file")
parser.add_option("", "--blacklist", dest="blacklist",
help="Blacklist all nodes in this file")
-config = config(parser)
-config.parse_args()
+config = parsermodule.parse_args(parser)
# daemonize and *pid
#from util.process import *
# daemonize and *pid
#from util.process import *