Updated reactive for io-murano and modified config.yaml defaults

This commit is contained in:
viswesn 2016-10-27 14:32:27 +05:30
parent f3153a14fd
commit d6665ea133
2 changed files with 5 additions and 4 deletions

View File

@ -28,10 +28,10 @@ options:
type: string
description: OpenStack Region
ext-network:
default: ext-net
default: ext_net
type: string
description: External network to connect
router:
default: default-router
default: default_router
type: string
description: Default router to connect

View File

@ -48,12 +48,13 @@ def render_config(*args):
# db_sync checks if sync has been done so rerunning is a noop
@reactive.when('config.rendered')
def init_db(*args):
def init_db():
with charm.provide_charm_instance() as charm_class:
charm_class.db_sync()
@reactive.when_not('io-murano.imported')
@reactive.when('config.rendered')
@reactive.when(*COMPLETE_INTERFACE_STATES)
def import_io_murano(*args):
def import_io_murano():
murano.import_io_murano()
reactive.set_state('io-murano.imported')