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:
Alex Kavanagh 2017-07-19 15:56:57 +01:00
parent 2ba3850521
commit 317e55074d
1 changed files with 1 additions and 1 deletions

View File

@ -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')