Skip to content

Commit

Permalink
[FIX] fixed use_for_ea_inheritance update operation on host record
Browse files Browse the repository at this point in the history
  • Loading branch information
JkhatriInfobox committed Sep 25, 2024
1 parent 06227fe commit 3b21aac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/module_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def run(self, ib_obj_type, ib_spec):
result['changed'] = True
if not self.module.check_mode and res is None:
proposed_object = self.on_update(proposed_object, ib_spec)
self.update_object(ref, proposed_object)
res = self.update_object(ref, proposed_object)
result['changed'] = True

if ib_obj_type == NIOS_HOST_RECORD and res:
Expand All @@ -526,7 +526,6 @@ def run(self, ib_obj_type, ib_spec):
ipv4addr = proposed['ipv4addr']
if ipv4addr in ref_dict and 'use_for_ea_inheritance' in proposed:
self.update_object(ref_dict[ipv4addr], {'use_for_ea_inheritance': proposed['use_for_ea_inheritance']})

elif state == 'absent':
if ref is not None:
if 'ipv4addrs' in proposed_object:
Expand Down

0 comments on commit 3b21aac

Please sign in to comment.