Browse Source

add some debug

pull/24/head
Nicolas Massé 7 years ago
parent
commit
83caed159f
  1. 3
      tasks/steps/activedoc.yml
  2. 12
      tasks/steps/discover.yml

3
tasks/steps/activedoc.yml

@ -1,6 +1,7 @@
--- ---
- debug: - debug:
msg: '{{ threescale_cicd_openapi_rewritten }}' var: threescale_cicd_openapi_rewritten
verbosity: 1
- include_tasks: api-calls/update_activedoc.yml - include_tasks: api-calls/update_activedoc.yml
when: 'threescale_cicd_api_system_name in threescale_cicd_existing_activedocs' when: 'threescale_cicd_api_system_name in threescale_cicd_existing_activedocs'

12
tasks/steps/discover.yml

@ -17,6 +17,10 @@
msg: "Found {{ threescale_cicd_existing_services|length }} services" msg: "Found {{ threescale_cicd_existing_services|length }} services"
verbosity: 1 verbosity: 1
- debug:
var: threescale_cicd_existing_services_details
verbosity: 1
- name: Get the list of existing application plans - name: Get the list of existing application plans
uri: uri:
url: https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}/application_plans.json?access_token={{ threescale_cicd_access_token|urlencode }} url: https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}/application_plans.json?access_token={{ threescale_cicd_access_token|urlencode }}
@ -32,6 +36,10 @@
msg: "Found {{ threescale_cicd_existing_application_plans|length }} application plans" msg: "Found {{ threescale_cicd_existing_application_plans|length }} application plans"
verbosity: 1 verbosity: 1
- debug:
var: threescale_cicd_existing_application_plans_details
verbosity: 1
- name: Retrieve existing ActiveDocs from the 3scale Admin Portal - name: Retrieve existing ActiveDocs from the 3scale Admin Portal
uri: uri:
url: "https://{{ inventory_hostname }}/admin/api/active_docs.json?access_token={{ threescale_cicd_access_token|urlencode }}" url: "https://{{ inventory_hostname }}/admin/api/active_docs.json?access_token={{ threescale_cicd_access_token|urlencode }}"
@ -45,3 +53,7 @@
- debug: - debug:
msg: "Found {{ threescale_cicd_existing_activedocs|length }} active docs" msg: "Found {{ threescale_cicd_existing_activedocs|length }} active docs"
verbosity: 1 verbosity: 1
- debug:
var: threescale_cicd_existing_activedocs_details
verbosity: 1

Loading…
Cancel
Save