mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5273 from jsdalton/fix_minor_wait_bug
Make sure initial_state is initialized
This commit is contained in:
commit
2df4e807db
1 changed files with 1 additions and 2 deletions
|
@ -138,8 +138,7 @@ class ElbManager:
|
|||
to report it out-of-service"""
|
||||
|
||||
for lb in self.lbs:
|
||||
if wait:
|
||||
initial_state = self._get_instance_health(lb)
|
||||
initial_state = self._get_instance_health(lb) if wait else None
|
||||
|
||||
if initial_state and initial_state.state == 'InService':
|
||||
lb.deregister_instances([self.instance_id])
|
||||
|
|
Loading…
Reference in a new issue