Browse Source

Don't require allowed_address_pairs for port

Port can miss allowed_address_pairs parameter.

Story: 2009192
Task: 43246
Resolves: rhbz#2021810

Change-Id: I8fcc19889eaaec6342c8d7910a55f06e98dbd368
changes/54/817454/1
Sagi Shnaidman 7 months ago
parent
commit
8e87ad651f
  1. 4
      plugins/modules/port.py

4
plugins/modules/port.py

@ -340,11 +340,11 @@ class NetworkPortModule(OpenStackModule):
for key in compare_list_dict:
if not self.params[key]:
if port[key]:
if port.get(key):
return True
if self.params[key]:
if not port[key]:
if not port.get(key):
return True
# sort dicts in list

Loading…
Cancel
Save