remove debugs and edit status check on ln 48

This commit is contained in:
Andy Rajagopalan
2019-12-18 09:40:15 -08:00
committed by Steve Smith
parent 007c9b7dda
commit a57edf7a9b

View File

@@ -30,18 +30,11 @@
body_format: json
return_content: yes
register: output
until: output.status == 200
until: output is defined and output.status == 200 and output.json is defined and output.json.state != 'INITIALISING'
retries: 6
delay: 15
failed_when: output is defined and output.json is defined and output.json.state != 'INITIALISING'
#failed_when: "'INITIALISING' not in output.content"
- name: get status of import
debug: var=output.json.state
- name: get status of import
debug: var=output.json.id
- name: get import status
uri:
url: "{{ atl_bitbucket_baseurl }}/rest/api/1.0/migration/imports/{{ output.json.id }}"