mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Fix exception being thrown for new instance
Currently if we are trying to register an instance that has not yet been registered with the elb an exception is thrown.
This commit is contained in:
parent
79cefa1af5
commit
0f95961e33
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class ElbManager:
|
|||
if instance_state.state == awaited_state:
|
||||
# Check the current state agains the initial state, and only set
|
||||
# changed if they are different.
|
||||
if instance_state.state != initial_state.state:
|
||||
if (initial_state is None) or (instance_state.state != initial_state.state):
|
||||
self.changed = True
|
||||
break
|
||||
elif self._is_instance_state_pending(instance_state):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue