Skip to content

Commit

Permalink
Fix for issue 347
Browse files Browse the repository at this point in the history
Manually tested this to verify.

Still need to update integration and unit tests.
  • Loading branch information
allenrobel committed Nov 21, 2024
1 parent 308acb6 commit 5201c94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/modules/dcnm_image_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}, "
Expand Down Expand Up @@ -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:
"""
Expand Down

0 comments on commit 5201c94

Please sign in to comment.