From 00cd817342d7dbbb4cc35edb1bd80c97b91ed41b Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Thu, 4 Apr 2019 13:35:38 +0200 Subject: lint: fix latest recommendations from ansible-lint --- tasks/plugins.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks') 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 @@ 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 -- cgit v1.2.3