Merge "Drop direct execution of octavia/cmd/*.py"
This commit is contained in:
commit
ef28b2e629
@ -262,7 +262,3 @@ def main():
|
||||
else:
|
||||
print("Unsupported protocol '{}'".format(protocol))
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -125,7 +125,3 @@ def main():
|
||||
process.join()
|
||||
except KeyboardInterrupt:
|
||||
process_cleanup()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -84,7 +84,3 @@ def main():
|
||||
except Exception as e:
|
||||
print("Error: {}".format(e))
|
||||
sys.exit(2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -36,7 +36,3 @@ def main():
|
||||
workers=CONF.controller_worker.workers, args=(CONF,))
|
||||
oslo_config_glue.setup(sm, CONF, reload_method="mutate")
|
||||
sm.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/python3
|
||||
# Copyright 2022 Red Hat
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
@ -810,7 +809,3 @@ def main():
|
||||
httpd.serve_forever()
|
||||
except Exception:
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -12,8 +12,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_upgradecheck import common_checks
|
||||
from oslo_upgradecheck import upgradecheck
|
||||
@ -120,7 +118,3 @@ class Checks(upgradecheck.UpgradeCommands):
|
||||
def main():
|
||||
return upgradecheck.main(
|
||||
CONF, project='octavia', upgrade_command=Checks())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
Loading…
Reference in New Issue
Block a user