Skip to content

Commit

Permalink
Add post_create to the set_network_filter_parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Nečas <necas.marty@gmail.com>
  • Loading branch information
mnecas authored and mwperina committed Nov 16, 2022
1 parent b357a9b commit 543ab06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/modules/ovirt_nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 543ab06

Please sign in to comment.