Fixup 4094: Debug agents when nothing is return (#4125)

This commit is contained in:
Erwan Miran 2019-01-28 12:33:18 +01:00 committed by Kubernetes Prow Robot
parent 2054a98cf7
commit 5e260fe23a

View file

@ -71,6 +71,14 @@
- debug: var=agents.content|from_json
failed_when: not agents is success and not agents.content=='{}'
run_once: true
when:
- agents.content[0] == '{'
- debug: var=agents
failed_when: not agents is success and not agents.content=='{}'
run_once: true
when:
- agents.content[0] != '{'
- name: Check netchecker status
uri: url=http://{{ ansible_default_ipv4.address }}:{{netchecker_port}}/api/v1/connectivity_check status_code=200 return_content=yes