1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make sure initial_state is initialized

This commit is contained in:
Jim Dalton 2013-12-12 13:09:40 -08:00
parent bddaace970
commit aa329b4b48

View file

@ -138,8 +138,7 @@ class ElbManager:
to report it out-of-service""" to report it out-of-service"""
for lb in self.lbs: for lb in self.lbs:
if wait: initial_state = self._get_instance_health(lb) if wait else None
initial_state = self._get_instance_health(lb)
if initial_state and initial_state.state == 'InService': if initial_state and initial_state.state == 'InService':
lb.deregister_instances([self.instance_id]) lb.deregister_instances([self.instance_id])