Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@

- name: update remote snapshot
include: update-snapshot.yml
when: true
when: SPEC_FILE
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
- "status: {{ update_apidoc.status }}"
- "error: {{ update_apidoc.msg }}"

- name: update local apidoc
set_fact:
apidoc: "{{ existing_apidocs[0] | default(update_apidoc.json.data) }}"

rescue:
- fail:
msg: Maximum retries of create api docs been reached tasks reached
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
msg: "Retry count: {{ snapshot_retry_count }}"
when: snapshot_retry_count | int > 0

- name: update local apidoc
set_fact:
apidoc: "{{ create_apidoc.json.data | default(update_apidoc.json.data) }}"

- name: Update remote snapshot
uri:
url: "{{ portals_base_uri }}/{{ portal_id }}/apidocs/{{ apidoc.id }}/snapshot"
Expand Down