Merge "Drop direct execution of octavia/cmd/*.py"

This commit is contained in:
Zuul 2024-03-08 19:37:35 +00:00 committed by Gerrit Code Review
commit ef28b2e629
6 changed files with 0 additions and 27 deletions

View File

@ -262,7 +262,3 @@ def main():
else:
print("Unsupported protocol '{}'".format(protocol))
sys.exit(1)
if __name__ == '__main__':
main()

View File

@ -125,7 +125,3 @@ def main():
process.join()
except KeyboardInterrupt:
process_cleanup()
if __name__ == "__main__":
main()

View File

@ -84,7 +84,3 @@ def main():
except Exception as e:
print("Error: {}".format(e))
sys.exit(2)
if __name__ == "__main__":
main()

View File

@ -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()

View File

@ -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()

View File

@ -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())