mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Instance deregistration should try all associated ELBs. Fixes #869
This commit is contained in:
parent
eff6307ac3
commit
9de952cb3f
1 changed files with 3 additions and 3 deletions
|
@ -130,9 +130,9 @@ class ElbManager:
|
||||||
for lb in self.lbs:
|
for lb in self.lbs:
|
||||||
initial_state = self._get_instance_health(lb)
|
initial_state = self._get_instance_health(lb)
|
||||||
if initial_state is None:
|
if initial_state is None:
|
||||||
# The instance isn't registered with this ELB so just
|
# Instance isn't registered with this load
|
||||||
# return unchanged
|
# balancer. Ignore it and try the next one.
|
||||||
return
|
continue
|
||||||
|
|
||||||
lb.deregister_instances([self.instance_id])
|
lb.deregister_instances([self.instance_id])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue