From 409765dce9924bfb9e345be76dec9e042f407714 Mon Sep 17 00:00:00 2001 From: yhaliaw <43424755+yhaliaw@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:47:17 +0800 Subject: [PATCH] Fix missing change token condition --- src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index d76b05b2f..75ad85c36 100755 --- a/src/charm.py +++ b/src/charm.py @@ -636,7 +636,7 @@ def _on_config_changed(self, _: ConfigChangedEvent) -> None: state = self._setup_state() - if state.instance_type == InstanceType.OPENSTACK: + if state.charm_config.token != self._stored.token and state.instance_type == InstanceType.OPENSTACK: openstack_runner_manager = self._get_openstack_runner_manager(state) openstack_runner_manager.flush() openstack_runner_manager.reconcile(state.runner_config.virtual_machines)