mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43435 from blueyed/boto_elb-register-currently-deregistrating
boto_elb.register_instances: do not skip instances being unregistered
This commit is contained in:
commit
fc3489489e
1 changed files with 2 additions and 1 deletions
|
@ -517,7 +517,8 @@ def register_instances(name, instances, region=None, key=None, keyid=None,
|
|||
|
||||
health = __salt__['boto_elb.get_instance_health'](
|
||||
name, region, key, keyid, profile)
|
||||
nodes = [value['instance_id'] for value in health]
|
||||
nodes = [value['instance_id'] for value in health
|
||||
if value['description'] != 'Instance deregistration currently in progress.']
|
||||
new = [value for value in instances if value not in nodes]
|
||||
if not len(new):
|
||||
msg = 'Instance/s {0} already exist.'.format(str(instances).strip('[]'))
|
||||
|
|
Loading…
Add table
Reference in a new issue