Commit 6d691282 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cfgupgrade: Add main() function

Reviewed-by: iustinp
parent eda37a5a
......@@ -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 :
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment