Skip to content

Commit

Permalink
Wrap webhook payload dict to avoid collisions (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbarfuss authored May 13, 2021
1 parent ecc2ac1 commit fdbe64a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resource-dispatcher/execution/plugins/ansible-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ def process(ctx, params):
inventory_path = (
params["inventory_path"] if "inventory_path" in params else "inventory/hosts"
)
extra_vars = dict(ctx)
extra_vars = dict(
webhook_payload=ctx
)
if "extra_vars" in params:
extra_vars.update(params["extra_vars"])
# Use the Python that we're running as by default, so dependencies are available
Expand Down

0 comments on commit fdbe64a

Please sign in to comment.