diff --git a/src/config.yaml b/src/config.yaml index b6308de..f29a6cd 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -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 diff --git a/src/reactive/murano_handlers.py b/src/reactive/murano_handlers.py index 919002d..37801dc 100644 --- a/src/reactive/murano_handlers.py +++ b/src/reactive/murano_handlers.py @@ -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')