Skip to content
Snippets Groups Projects
Commit d6b2f5e6 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix Grafana datasource update"

parents 5d3703c8 7bd88050
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
run_once: True run_once: True
changed_when: response.status == 200 changed_when: response.status == 200
failed_when: response.status not in [200, 409] or failed_when: response.status not in [200, 409] or
response.status == 409 and ("Data source with same name already exists" not in response.json.message|default("")) response.status == 409 and ("name already exists" not in response.json.message|default(""))
with_dict: "{{ grafana_data_sources }}" with_dict: "{{ grafana_data_sources }}"
when: item.value.enabled | bool when: item.value.enabled | bool
......
...@@ -115,6 +115,6 @@ ...@@ -115,6 +115,6 @@
changed_when: monasca_grafana_datasource_response.status == 200 changed_when: monasca_grafana_datasource_response.status == 200
failed_when: monasca_grafana_datasource_response.status not in [200, 409] or failed_when: monasca_grafana_datasource_response.status not in [200, 409] or
(monasca_grafana_datasource_response.status == 409 and (monasca_grafana_datasource_response.status == 409 and
"Data source with same name already exists" not in monasca_grafana_datasource_response.json.message|default("")) "name already exists" not in monasca_grafana_datasource_response.json.message|default(""))
with_dict: "{{ monasca_grafana_data_sources }}" with_dict: "{{ monasca_grafana_data_sources }}"
when: item.value.enabled | bool when: item.value.enabled | bool
---
fixes:
- |
Fixes Grafana datasource update.
`LP#1881890 <https://launchpad.net/bugs/1881890>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment