Fixed check for None in os_port

Fix bug introduced in commit cac93cb
https://github.com/ansible/ansible/commit/cac93cbd1f041eac5045250a6663644cdbba3df8

Task: 40928
Story: 2008173
Change-Id: I990a68d4e24c3c3953010e4053c73454e56f0d64
This commit is contained in:
Jakob Meng
2021-01-11 13:32:50 +01:00
parent a4e6d1b67c
commit e4a223d160
+1 -1
View File
@@ -290,7 +290,7 @@ def _needs_update(module, port, cloud):
return True
for key in compare_list_dict:
if not module.params[key]:
if module.params[key]:
if not port[key]:
return True