Do not run config.rendered handlers when paused

Change-Id: Ie55422148e2824a30af51ffc121f88380bade06f
Closes-Bug: #1885121
This commit is contained in:
Frode Nordahl 2020-06-25 15:38:59 +02:00
parent 117ca6b979
commit 99932f1aeb
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def default_configure_certificates():
@reactive.when('charms.openstack.do-default-config-rendered')
@reactive.when_not('config.rendered')
@reactive.when_not('charm.paused', 'config.rendered')
def default_config_not_rendered():
"""Disable services until charm code has set the config.rendered state."""
with charm.provide_charm_instance() as instance:
@ -140,6 +140,7 @@ def default_config_not_rendered():
@reactive.when('charms.openstack.do-default-config-rendered',
'config.rendered')
@reactive.when_not('charm.paused')
def default_config_rendered():
"""Enable services when charm code has set the config.rendered state."""
with charm.provide_charm_instance() as instance: