From 03c603826db1550e966c72d062ababefccf25155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Fri, 5 Apr 2019 11:43:51 +0200 Subject: Fix retry and missing parenthesis --- tasks/plugins.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/plugins.yml b/tasks/plugins.yml index 164f6f2..f6d1c78 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml @@ -26,7 +26,7 @@ current_config: "{{ plugins_list | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" current_id_hash: id: "{{ current_config.id }}" - current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}" + current_body: "{{ (not current_id_hash.id) | ternary({}, current_id_hash) }}" exists_plugin: "{{ not current_id_hash.id }}" when: not kong_app_service_plugins_check is skipped ignore_errors: true @@ -58,7 +58,7 @@ uri: url: "{{ server.kong_app_admin_url }}/services/{{ service.name }}/plugins" method: "POST" - body: "{{ body }}" + body: "{{ body | to_json }}" headers: "{{ headers }}" status_code: 200,201 loop: "{{ kong_plugin_update_st.results }}" -- cgit v1.2.3