Enable cmd/api & cmd/conductor to be launched directly

This will be needed for functional testing, so we can execute them with:
  python -m ironic.cmd.api
  python -m ironic.cmd.conductor

Change-Id: I2f201ee1f6517879fec6da4e6f40a6155763d979
Partial-Bug: #1491670
This commit is contained in:
John L. Villalovos
2015-10-16 15:17:51 -07:00
parent 2a2a5d0bbc
commit 3ab18a882b
2 changed files with 8 additions and 0 deletions

View File

@@ -64,3 +64,7 @@ def main():
wsgi.serve_forever()
except KeyboardInterrupt:
pass
if __name__ == '__main__':
sys.exit(main())

View File

@@ -45,3 +45,7 @@ def main():
launcher = service.launch(CONF, mgr)
launcher.wait()
if __name__ == '__main__':
sys.exit(main())