mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check for existence of 'subnetId' key in subnet dict
This commit is contained in:
parent
83ae6a1432
commit
f21a763809
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ def _create_eni_if_necessary(interface):
|
|||
break
|
||||
else:
|
||||
for subnet in subnet_query_result['item']:
|
||||
if subnet['subnetId'] == interface['SubnetId']:
|
||||
if 'subnetId' in subnet and subnet['subnetId'] == interface['SubnetId']:
|
||||
found = True
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue