Merge pull request #1865 from dennisconrad/devel

Fix for existing ENIs w/ multiple security groups
reviewable/pr18780/r1
René Moser 9 years ago
commit 8d8d418e94

@ -324,7 +324,7 @@ def compare_eni(connection, module):
for eni in all_eni:
remote_security_groups = get_sec_group_list(eni.groups)
if (eni.subnet_id == subnet_id) and (eni.private_ip_address == private_ip_address) and (eni.description == description) and (remote_security_groups == security_groups):
if (eni.subnet_id == subnet_id) and (eni.private_ip_address == private_ip_address) and (eni.description == description) and (sorted(remote_security_groups) == sorted(security_groups)):
return eni
except BotoServerError as e:

Loading…
Cancel
Save