]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blobdiff - tasks/plugins.yml
lint: fix latest recommendations from ansible-lint
[github/fretlink/ansible-kong-app.git] / tasks / plugins.yml
index cedbbd2af2b089dcf0cc8457118b194ea4731aa0..c64e5c956307dcaece0cefa2cc35eecb9b66737b 100644 (file)
@@ -23,7 +23,7 @@
     current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}"
     current_id_hash:
       id: "{{ current_config.id }}"
-    current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}"
-    exists_plugin: "{{ current_id_hash.id == '' }}"
+    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
   no_log: true