From 3b21aac4d8c1f5bf9157edb4897b520024889629 Mon Sep 17 00:00:00 2001 From: Jeenitkumar Khatri Date: Wed, 25 Sep 2024 17:44:06 +0530 Subject: [PATCH] [FIX] fixed use_for_ea_inheritance update operation on host record --- plugins/module_utils/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/module_utils/api.py b/plugins/module_utils/api.py index 2c1ecf09..f04effa2 100644 --- a/plugins/module_utils/api.py +++ b/plugins/module_utils/api.py @@ -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: @@ -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: