Merge "Add debug flag in the config"
This commit is contained in:
commit
4461b6d176
@ -46,7 +46,9 @@ core_opts = [
|
|||||||
help=_('The default neutron local address-scope name')),
|
help=_('The default neutron local address-scope name')),
|
||||||
cfg.StrOpt('global_default_address_space',
|
cfg.StrOpt('global_default_address_space',
|
||||||
default='global_scope',
|
default='global_scope',
|
||||||
help=_('The default neutron global address-scope name.'))
|
help=_('The default neutron global address-scope name.')),
|
||||||
|
cfg.BoolOpt('debug', default=True,
|
||||||
|
help=_('Enable or Disable debug mode for kuryr server.'))
|
||||||
]
|
]
|
||||||
neutron_opts = [
|
neutron_opts = [
|
||||||
cfg.StrOpt('neutron_uri',
|
cfg.StrOpt('neutron_uri',
|
||||||
|
@ -21,5 +21,5 @@ def start():
|
|||||||
from kuryr import app
|
from kuryr import app
|
||||||
from kuryr import controllers
|
from kuryr import controllers
|
||||||
controllers.check_for_neutron_ext_support()
|
controllers.check_for_neutron_ext_support()
|
||||||
app.debug = True
|
app.debug = config.CONF.debug
|
||||||
app.run("0.0.0.0", port)
|
app.run("0.0.0.0", port)
|
||||||
|
@ -32,6 +32,8 @@ class ConfigurationTest(base.TestKuryrBase):
|
|||||||
self.assertEqual('http://127.0.0.1:2377',
|
self.assertEqual('http://127.0.0.1:2377',
|
||||||
config.CONF.kuryr_uri)
|
config.CONF.kuryr_uri)
|
||||||
|
|
||||||
|
self.assertEqual(True, config.CONF.debug)
|
||||||
|
|
||||||
self.assertEqual('http://127.0.0.1:9696',
|
self.assertEqual('http://127.0.0.1:9696',
|
||||||
config.CONF.neutron_client.neutron_uri)
|
config.CONF.neutron_client.neutron_uri)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user