diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2019-04-04 13:40:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 13:40:09 +0200 |
commit | f3304d462d69fbd1466172c3c7cf445eed19f25f (patch) | |
tree | 90eb429062eeb2aa660965848270cbd30497ff05 /tasks | |
parent | 66401fc939cd73628561d4832c3e219f0b44d8de (diff) | |
parent | 00cd817342d7dbbb4cc35edb1bd80c97b91ed41b (diff) | |
download | ansible-kong-app-f3304d462d69fbd1466172c3c7cf445eed19f25f.tar.gz ansible-kong-app-f3304d462d69fbd1466172c3c7cf445eed19f25f.tar.zst ansible-kong-app-f3304d462d69fbd1466172c3c7cf445eed19f25f.zip |
Merge pull request #10 from paulrbr-fl/fix-dhall-config-for-kong-upgradev0.6
dhall(fix): fix for generated configuration for Kong 1.x upgrade
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/plugins.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/plugins.yml b/tasks/plugins.yml index cedbbd2..c64e5c9 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml | |||
@@ -23,7 +23,7 @@ | |||
23 | current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" | 23 | current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" |
24 | current_id_hash: | 24 | current_id_hash: |
25 | id: "{{ current_config.id }}" | 25 | id: "{{ current_config.id }}" |
26 | current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}" | 26 | current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}" |
27 | exists_plugin: "{{ current_id_hash.id == '' }}" | 27 | exists_plugin: "{{ not current_id_hash.id }}" |
28 | when: not kong_app_service_plugins_check is skipped | 28 | when: not kong_app_service_plugins_check is skipped |
29 | no_log: true | 29 | no_log: true |