From 414d0e92acb75bcb533bf65b35cd8dc718261d50 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Mon, 13 Nov 2017 21:59:52 +0100 Subject: [PATCH] cloud: ovirt: ovirt_cluster.py Fix issue with non required parameter 'external_network_providers' (#32797) --- lib/ansible/modules/cloud/ovirt/ovirt_cluster.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py index 72eeaf9714..8c89955c09 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py @@ -507,6 +507,8 @@ class ClustersModule(BaseModule): return equal(item.get('id'), entity.id) and equal(item.get('name'), entity.name) def _update_check_external_network_providers(self, entity): + if self.param('external_network_providers') is None: + return True if entity.external_network_providers is None: return not self.param('external_network_providers') entity_providers = self._connection.follow_link(entity.external_network_providers)