Skip to content

Commit 41b3e97

Browse files
authored
Merge pull request #194 from NHSDigital/master
APM-1733 Fix Apidoc bugs
2 parents b7bcc32 + 9228b1e commit 41b3e97

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

ansible/roles/deploy-apigee-product-and-spec/tasks/deploy-product-and-apidoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@
105105

106106
- name: update remote snapshot
107107
include: update-snapshot.yml
108-
when: true
108+
when: SPEC_FILE

ansible/roles/deploy-apigee-product-and-spec/tasks/update-api-doc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
- "status: {{ update_apidoc.status }}"
5151
- "error: {{ update_apidoc.msg }}"
5252

53-
- name: update local apidoc
54-
set_fact:
55-
apidoc: "{{ existing_apidocs[0] | default(update_apidoc.json.data) }}"
56-
5753
rescue:
5854
- fail:
5955
msg: Maximum retries of create api docs been reached tasks reached

ansible/roles/deploy-apigee-product-and-spec/tasks/update-snapshot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
msg: "Retry count: {{ snapshot_retry_count }}"
99
when: snapshot_retry_count | int > 0
1010

11+
- name: update local apidoc
12+
set_fact:
13+
apidoc: "{{ create_apidoc.json.data | default(update_apidoc.json.data) }}"
14+
1115
- name: Update remote snapshot
1216
uri:
1317
url: "{{ portals_base_uri }}/{{ portal_id }}/apidocs/{{ apidoc.id }}/snapshot"

0 commit comments

Comments
 (0)