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:
@@ -64,3 +64,7 @@ def main():
|
||||
wsgi.serve_forever()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
@@ -45,3 +45,7 @@ def main():
|
||||
|
||||
launcher = service.launch(CONF, mgr)
|
||||
launcher.wait()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user