Skip to content

Commit

Permalink
Remove compatibility code for now-unsupported clever-tools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
clementd-fretlink committed Jul 2, 2020
1 parent 24a1534 commit 3d3287e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions tasks/addon.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
- name: Gather addon information for {{ addon.name }} (clever --version < 1.5.0)
shell: >
set -o pipefail &&
clever env | grep {{ addon.env_prefix }}
| sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/'
> {{ clever_app_confdir }}/{{ addon.name }}_env.yml
args:
chdir: "{{ clever_app_root }}"
executable: "bash"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
changed_when: False
when: clever_returned_version.stdout is version('1.5.0', '<')

- name: Gather addon information for {{ addon.name }} (clever --version >= 1.5.0)
- name: Gather addon information for {{ addon.name }}
shell: >
set -o pipefail &&
clever env | grep {{ addon.env_prefix }}
Expand All @@ -24,7 +10,6 @@
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
changed_when: False
when: clever_returned_version.stdout is version('1.5.0', '>=')

- name: Include addon var for {{ addon.name }}
include_vars:
Expand Down

0 comments on commit 3d3287e

Please sign in to comment.