Skip to content

Commit

Permalink
Update module_executor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanth-lingappa authored Sep 23, 2024
1 parent c332f78 commit 4431bf6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/module_utils/module_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,10 @@ def sync_single_binding(self, binding_name):
if to_be_added_bindprimary_keys:
self.add_bindings(
binding_name=binding_name,
desired_bindings=desired_binding_members,
desired_bindings=[
x for x in desired_binding_members
if x[get_bindprimary_key(binding_name, x)] in to_be_added_bindprimary_keys
],
)

# If there is any default bindings, after adding the custom bindings, the default bindings will be deleted automatically
Expand Down

0 comments on commit 4431bf6

Please sign in to comment.