I just removed the following the flag unit.departed then update_controller_ip_port_list can be triggered after removing unit.
reactive.flags.register_trigger( when_not='cluster.connected', set_flag='unit.departed')
@reactive.when('unit.departed') def update_controller_ip_port_list():
This is self-test data for patchset5 - https://paste.ubuntu.com/p/rkJW5NKcKY/
I just removed the following the flag unit.departed then update_ controller_ ip_port_ list can be triggered after removing unit.
reactive. flags.register_ trigger( not='cluster. connected' , set_flag= 'unit.departed' )
when_
@reactive. when('unit. departed' ) controller_ ip_port_ list():
def update_
This is self-test data for patchset5 - https:/ /paste. ubuntu. com/p/rkJW5NKcK Y/