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

pull/4054/head
Erwan Miran 2019-01-28 12:33:18 +01:00 committed by Kubernetes Prow Robot
parent 2054a98cf7
commit 5e260fe23a
1 changed files with 8 additions and 0 deletions

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