From 1561a17014c8d5b456c012bd25c6333640602b68 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 21 Sep 2018 11:04:50 +0200 Subject: warnings: Remove warning given by Ansible 2.5 ``` [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` instead use `result is failed`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ``` --- tasks/setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup.yml b/tasks/setup.yml index ac9fdcb..0dfcddf 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -15,7 +15,7 @@ - "--strip-components=1" src: https://clever-tools.cellar.services.clever-cloud.com/releases/{{ clever_cli_version }}/clever-tools-{{ clever_cli_version }}_linux.tar.gz dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}" - when: clever_returned_version|failed or clever_returned_version.stdout != clever_cli_version + when: clever_returned_version is failed or clever_returned_version.stdout != clever_cli_version - name: Install helper scripts copy: -- cgit v1.2.3 From 1fb29e0e0261bc705fdd4bc26958d2248cc380dd Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 21 Sep 2018 11:05:47 +0200 Subject: python3: Change iteritems() to items() to be compatible with py3 --- templates/env.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/env.j2 b/templates/env.j2 index d543a81..6ed6469 100644 --- a/templates/env.j2 +++ b/templates/env.j2 @@ -1,3 +1,3 @@ -{% for key, value in (clever_base_env | combine(clever_env)).iteritems() %} +{% for key, value in (clever_base_env | combine(clever_env)).items() %} {{ key }}={{ value }} {% endfor %} -- cgit v1.2.3