From 776253c43642219ddbd3e7ded3e39c1ddc1d86b7 Mon Sep 17 00:00:00 2001 From: Doug Szumski <doug@stackhpc.com> Date: Fri, 15 May 2020 08:56:01 +0000 Subject: [PATCH] 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 --- ansible/roles/monasca/tasks/post_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/monasca/tasks/post_config.yml b/ansible/roles/monasca/tasks/post_config.yml index d06654036..dbe7b2906 100644 --- a/ansible/roles/monasca/tasks/post_config.yml +++ b/ansible/roles/monasca/tasks/post_config.yml @@ -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 -- GitLab