Skip to content

Commit

Permalink
Fix side_effect arguments (#4356)
Browse files Browse the repository at this point in the history
Fixes #4343

`side_effect` was using the configured playbook name regardless of
arguments passed in.
  • Loading branch information
Qalthos authored Jan 13, 2025
1 parent e166961 commit ec3e08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/molecule/provisioner/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,8 @@ def side_effect(self, action_args: list[str] | None = None) -> None:
playbooks = [
self._get_ansible_playbook(self.abs_path(playbook)) for playbook in action_args
]
playbooks = [self._get_ansible_playbook(self.playbooks.side_effect)]
else:
playbooks = [self._get_ansible_playbook(self.playbooks.side_effect)]
for pb in playbooks:
pb.execute()

Expand Down

0 comments on commit ec3e08d

Please sign in to comment.