Fix charm error when domain-backend relation disconnects
The charm failed with an error so that it wasn't properly removed. This fix allows the domain-backend disconnect event to be handled so that the charm can be removed. Change-Id: I850eadb48af8709e25cb9203ddf9a135f1d94c8f
This commit is contained in:
parent
2ba3850521
commit
317e55074d
|
@ -37,7 +37,7 @@ def configure_domain_name(domain):
|
|||
|
||||
@reactive.when_not('domain-backend.connected')
|
||||
@reactive.when('domain-name-configured')
|
||||
def clear_domain_name_configured(domain):
|
||||
def clear_domain_name_configured(*args):
|
||||
reactive.remove_state('domain-name-configured')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue