Fix the ip getting tasks in tests
The current failed_when condition for getting ips is allowing the empty string for the ip. It leads to the error in ping tasks against to them Change-Id: If117039c427e60ced64fc9490ff22029db67815b
This commit is contained in:
parent
30f0708473
commit
d52c780a8d
@ -27,7 +27,9 @@
|
||||
until: _memcached_ips is success
|
||||
retries: 10
|
||||
delay: 5
|
||||
failed_when: "{{ _memcached_ips.stdout_lines | length == 0 }}"
|
||||
failed_when: |
|
||||
{{ _memcached_ips.stdout_lines | length == 0 }} or
|
||||
{{ "" in _memcached_ips.stdout_lines }}
|
||||
|
||||
- name: Send request to Memcached exporter
|
||||
uri:
|
||||
@ -46,7 +48,9 @@
|
||||
until: _mcrouter_ips is success
|
||||
retries: 10
|
||||
delay: 5
|
||||
failed_when: "{{ _mcrouter_ips.stdout_lines | length == 0 }}"
|
||||
failed_when: |
|
||||
{{ _mcrouter_ips.stdout_lines | length == 0 }} or
|
||||
{{ "" in _mcrouter_ips.stdout_lines }}
|
||||
|
||||
- name: Send request to Mcrouter exporter
|
||||
uri:
|
||||
|
Loading…
x
Reference in New Issue
Block a user