From a57edf7a9b0ba88fbb84a8abc938f76e5de67ec7 Mon Sep 17 00:00:00 2001 From: Andy Rajagopalan Date: Wed, 18 Dec 2019 09:40:15 -0800 Subject: [PATCH] remove debugs and edit status check on ln 48 --- roles/bitbucket_dataset_restore/tasks/main.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/roles/bitbucket_dataset_restore/tasks/main.yml b/roles/bitbucket_dataset_restore/tasks/main.yml index 2b9fdd1..d7dcec5 100644 --- a/roles/bitbucket_dataset_restore/tasks/main.yml +++ b/roles/bitbucket_dataset_restore/tasks/main.yml @@ -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 }}"