Skip to content

Commit 5a22065

Browse files
committed
Ansible environment varible converted to bool from str
1 parent dcacfcb commit 5a22065

File tree

1 file changed

+3
-3
lines changed
  • ansible/roles/deploy-apigee-proxy/tasks

1 file changed

+3
-3
lines changed

ansible/roles/deploy-apigee-proxy/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
url: "{{ api_uri }}/_ping"
5858
return_content: yes
5959
register: proxy_ping_response
60-
when: PING
60+
when: PING | bool
6161

6262
- name: set proxy_deployed_revision
6363
set_fact:
6464
proxy_deployed_revision: "{{ (proxy_ping_response.content | from_json).revision }}"
65-
when: PING
65+
when: PING | bool
6666

6767
- name: check correct revision was deployed
6868
fail:
6969
msg: "Incorrect revision {{ proxy_deployed_revision }}, was expecting {{ revision }}"
70-
when: PING and proxy_deployed_revision != revision
70+
when: PING | bool and proxy_deployed_revision != revision

0 commit comments

Comments
 (0)