From 5201c94de01b804ea3aa11eaa6a00d38a0b84c73 Mon Sep 17 00:00:00 2001 From: Allen Robel Date: Wed, 20 Nov 2024 17:31:40 -1000 Subject: [PATCH] Fix for issue 347 Manually tested this to verify. Still need to update integration and unit tests. --- plugins/modules/dcnm_image_policy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/modules/dcnm_image_policy.py b/plugins/modules/dcnm_image_policy.py index 6aab7ebbc..e56364c71 100644 --- a/plugins/modules/dcnm_image_policy.py +++ b/plugins/modules/dcnm_image_policy.py @@ -592,7 +592,7 @@ def __init__(self, params): raise ValueError(msg) from error self.delete = ImagePolicyDelete() - self.merged = Merged(params) + self.replaced = Replaced(params) msg = f"ENTERED {self.class_name}().{method_name}: " msg += f"state: {self.state}, " @@ -627,10 +627,10 @@ def commit(self) -> None: self._delete_policies_not_in_want() # pylint: disable=attribute-defined-outside-init - self.merged.rest_send = self.rest_send + self.replaced.rest_send = self.rest_send # pylint: enable=attribute-defined-outside-init - self.merged.results = self.results - self.merged.commit() + self.replaced.results = self.results + self.replaced.commit() def _delete_policies_not_in_want(self) -> None: """