From e4a223d1603d4b62c48c572c6c101bbe49e86d60 Mon Sep 17 00:00:00 2001 From: Jakob Meng Date: Mon, 21 Sep 2020 14:59:07 +0200 Subject: [PATCH] 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 --- plugins/modules/port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/port.py b/plugins/modules/port.py index 79a48411..9e9efeaf 100644 --- a/plugins/modules/port.py +++ b/plugins/modules/port.py @@ -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