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 --- meta/main.yml | 8 +++++++- tasks/plugins.yml | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index a2ae975..af8b3f0 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -32,7 +32,13 @@ galaxy_info: # # platforms is a list of platforms, and each platform has a name and a list of versions. # - # platforms: + platforms: + - name: Debian + versions: + - all + - name: Ubuntu + version: + - all # - name: Fedora # versions: # - all 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