Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
6d691282
Commit
6d691282
authored
Jun 23, 2008
by
Michael Hanselmann
Browse files
cfgupgrade: Add main() function
Reviewed-by: iustinp
parent
eda37a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/cfgupgrade
View file @
6d691282
...
...
@@ -125,8 +125,12 @@ def SetupLogging():
root_logger
.
addHandler
(
stderr_handler
)
# Main program
if
__name__
==
"__main__"
:
def
main
():
"""Main program.
"""
global
options
,
args
program
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
# Option parsing
...
...
@@ -177,4 +181,8 @@ if __name__ == "__main__":
print
" gnt-cluster copyfile %s"
%
cfg_file
print
"now."
if
__name__
==
"__main__"
:
main
()
# vim: set foldmethod=marker :
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