1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloud: ovirt: ovirt_cluster.py Fix issue with non required parameter 'external_network_providers' (#32797)

This commit is contained in:
Katerina Koukiou 2017-11-13 21:59:52 +01:00 committed by ansibot
parent db6a72ebf9
commit 414d0e92ac

View file

@ -507,6 +507,8 @@ class ClustersModule(BaseModule):
return equal(item.get('id'), entity.id) and equal(item.get('name'), entity.name) return equal(item.get('id'), entity.id) and equal(item.get('name'), entity.name)
def _update_check_external_network_providers(self, entity): 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: if entity.external_network_providers is None:
return not self.param('external_network_providers') return not self.param('external_network_providers')
entity_providers = self._connection.follow_link(entity.external_network_providers) entity_providers = self._connection.follow_link(entity.external_network_providers)