mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
[cloud] Don't try to deregister an instance that isn't in the load balancer (#31660)
This commit is contained in:
committed by
Ryan Brown
parent
34e2019251
commit
90b6178e61
@@ -133,6 +133,10 @@ class ElbManager:
|
|||||||
# balancer. Ignore it and try the next one.
|
# balancer. Ignore it and try the next one.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# The instance is not associated with any load balancer so nothing to do
|
||||||
|
if not self._get_instance_lbs():
|
||||||
|
return
|
||||||
|
|
||||||
lb.deregister_instances([self.instance_id])
|
lb.deregister_instances([self.instance_id])
|
||||||
|
|
||||||
# The ELB is changing state in some way. Either an instance that's
|
# The ELB is changing state in some way. Either an instance that's
|
||||||
|
|||||||
Reference in New Issue
Block a user