You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2021/03/03 16:22:59 UTC
[trafficcontrol] branch master updated: snapshot API url update to
accomodate API 1.x (#5602)
This is an automated email from the ASF dual-hosted git repository.
zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new a57ba0f snapshot API url update to accomodate API 1.x (#5602)
a57ba0f is described below
commit a57ba0f8f7cb04df7e2e03c23469862754b2e644
Author: Ashish P <as...@cable.comcast.com>
AuthorDate: Wed Mar 3 09:22:44 2021 -0700
snapshot API url update to accomodate API 1.x (#5602)
---
infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml | 2 +-
infrastructure/ansible/roles/to_api/tasks/snapshot.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml b/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
index 5a97c07..053d53c 100644
--- a/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
+++ b/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
@@ -949,7 +949,7 @@
- name: Snapshot all CDNs
uri:
- url: "{{ dl_to_url }}/api/{{ dl_to_api_version }}/snapshot?cdn={{ item.name }}"
+ url: "{{ dl_to_url }}/api/{{ dl_to_api_version }}/snapshot/{{ item.name }}"
method: PUT
with_items: "{{ get_all_cdns.json.response[1:] }}"
register: snapshot_out
diff --git a/infrastructure/ansible/roles/to_api/tasks/snapshot.yml b/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
index d2ec312..84cc734 100644
--- a/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
+++ b/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
@@ -117,7 +117,7 @@
- name: "Writing snapshot ({{ to_api_target_cdn }})"
delegate_to: localhost
uri:
- url: "{{ to_api_base_url }}/snapshot?cdn={{ to_api_target_cdn }}"
+ url: "{{ to_api_base_url }}/snapshot/{{ to_api_target_cdn }}"
method: PUT
follow_redirects: all
return_content: yes