Skip to content

Commit

Permalink
Fix missing change token condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yhaliaw committed Jun 13, 2024
1 parent 2e06c5f commit 409765d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 409765d

Please sign in to comment.