From 543ab0608c9add309a2d1bec2f57c3cd039fea16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Tue, 15 Nov 2022 09:57:22 +0100 Subject: [PATCH] Add post_create to the set_network_filter_parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Nečas --- plugins/modules/ovirt_nic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/modules/ovirt_nic.py b/plugins/modules/ovirt_nic.py index c74bbe4c..144b81a7 100644 --- a/plugins/modules/ovirt_nic.py +++ b/plugins/modules/ovirt_nic.py @@ -196,6 +196,9 @@ def vnic_id(self): def vnic_id(self, vnic_id): self._vnic_id = vnic_id + def post_create(self, entity): + self._set_network_filter_parameters(entity.id) + def post_update(self, entity): self._set_network_filter_parameters(entity.id) @@ -235,7 +238,7 @@ def update_check(self, entity): equal(self._module.params.get('name'), str(entity.name)) and equal(self._module.params.get('profile'), get_link_name(self._connection, entity.vnic_profile)) and equal(self._module.params.get('mac_address'), entity.mac.address) and - equal(self._network_filter_parameters(), entity.network_filter_parameters) + equal(self._network_filter_parameters(), self._connection.follow_link(entity.network_filter_parameters)) ) elif self._module.params.get('template'): return (