mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +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.
|
||||
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])
|
||||
|
||||
# The ELB is changing state in some way. Either an instance that's
|
||||
|
||||
Reference in New Issue
Block a user