Fix registration of Monasca Grafana datasource

The refactor in change I500cc8800c412bc0e95edb15babad5c1189e6ee4
broke the task `Enable Monasca Grafana datasource for control
plane organisation`. This change fixes the brackets.

Change-Id: I9167a312be107fbfddfd07740f67845c2eaafc3d
Closes-Bug: 1878878
This commit is contained in:
Doug Szumski 2020-05-15 08:56:01 +00:00
parent fe1edb1baf
commit 776253c436

View File

@ -115,6 +115,6 @@
changed_when: monasca_grafana_datasource_response.status == 200
failed_when: monasca_grafana_datasource_response.status not in [200, 409] or
(monasca_grafana_datasource_response.status == 409 and
("Data source with same name already exists" not in monasca_grafana_datasource_response.json.message|default(""))
"Data source with same name already exists" not in monasca_grafana_datasource_response.json.message|default(""))
with_dict: "{{ monasca_grafana_data_sources }}"
when: item.value.enabled | bool