Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.toolbox
Commits
e0147aa7
Commit
e0147aa7
authored
May 28, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrong placement of args
parent
aada3f6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
slapos/kvm_monitor.py
slapos/kvm_monitor.py
+1
-6
No files found.
slapos/kvm_monitor.py
View file @
e0147aa7
...
@@ -79,10 +79,6 @@ def parseCli():
...
@@ -79,10 +79,6 @@ def parseCli():
usage
=
""" %(prog)s <filepath> <xml-path> -s [sections] -opts [options] """
usage
=
""" %(prog)s <filepath> <xml-path> -s [sections] -opts [options] """
parser
=
ArgumentParser
(
prog
=
"kvm_monitor.py"
,
usage
=
usage
)
parser
=
ArgumentParser
(
prog
=
"kvm_monitor.py"
,
usage
=
usage
)
parser
.
add_argument
(
"script_name"
,
help
=
"Script name passed as argument because sys.exit wrapper"
)
parser
.
add_argument
(
"filepath"
,
parser
.
add_argument
(
"filepath"
,
help
=
"Path to the configuration file with the informations"
help
=
"Path to the configuration file with the informations"
)
)
...
@@ -112,10 +108,9 @@ def runMonitor():
...
@@ -112,10 +108,9 @@ def runMonitor():
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
info_dict
=
MonitorConfig
(
args
.
filepath
,
info_dict
=
MonitorConfig
(
args
.
filepath
,
args
.
xml_path
,
args
.
sections
,
args
.
sections
,
args
.
options
args
.
options
).
getConfig
()
).
getConfig
()
serializer
=
GenerateXMLFile
(
"report.xml"
,
info_dict
)
serializer
=
GenerateXMLFile
(
args
.
xml_path
,
info_dict
)
serializer
.
outputFile
()
serializer
.
outputFile
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment