From eae028b31d6905dcdf7db2cf8ad685411964f228 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 17 Aug 2018 10:26:50 +0200 Subject: [PATCH] Properly quote the json messages Signed-off-by: Pierre-Yves Chibon --- playbooks/roles/debug/tasks/main.yml | 2 +- playbooks/roles/flag_build_commits/tasks/main.yml | 2 +- playbooks/roles/flag_ci_pr/tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/debug/tasks/main.yml b/playbooks/roles/debug/tasks/main.yml index 61cdd85..6b2b0ef 100644 --- a/playbooks/roles/debug/tasks/main.yml +++ b/playbooks/roles/debug/tasks/main.yml @@ -5,7 +5,7 @@ mode: 0755 - name: Run the script - command: /usr/local/bin/debug.py "{{ msg | to_json }}" + command: /usr/local/bin/debug.py {{ msg | to_json | quote }} register: output environment: TEST_VARIABLE: "{{ debug_token }}" diff --git a/playbooks/roles/flag_build_commits/tasks/main.yml b/playbooks/roles/flag_build_commits/tasks/main.yml index c436910..2c57ec4 100644 --- a/playbooks/roles/flag_build_commits/tasks/main.yml +++ b/playbooks/roles/flag_build_commits/tasks/main.yml @@ -5,7 +5,7 @@ mode: 0755 - name: Run the script - command: /usr/local/bin/flag_commit_build.py "{{ msg | to_json }}" + command: /usr/local/bin/flag_commit_build.py {{ msg | to_json | quote }} register: output environment: API_TOKEN: "{{ api_token_flag_commit_build }}" diff --git a/playbooks/roles/flag_ci_pr/tasks/main.yml b/playbooks/roles/flag_ci_pr/tasks/main.yml index 580d0b9..a18070b 100644 --- a/playbooks/roles/flag_ci_pr/tasks/main.yml +++ b/playbooks/roles/flag_ci_pr/tasks/main.yml @@ -5,7 +5,7 @@ mode: 0755 - name: Run the script - command: /usr/local/bin/flag_ci_pr.py "{{ msg | to_json }}" + command: /usr/local/bin/flag_ci_pr.py {{ msg | to_json | quote }} register: output environment: API_TOKEN: "{{ api_token_flag_pr_ci }}"