Merge "Let kuryr server start using port from config"

This commit is contained in:
Jenkins 2015-12-28 04:39:47 +00:00 committed by Gerrit Code Review
commit 7df02108d6

View File

@ -16,9 +16,10 @@ import sys
def start():
from kuryr.common import config
config.init(sys.argv[1:])
port = int(config.CONF.kuryr_uri.split(':')[-1])
from kuryr import app
from kuryr import controllers
controllers.check_for_neutron_ext_support()
app.debug = True
app.run("0.0.0.0", port=2377)
app.run("0.0.0.0", port)