From cbbc13bdbc322848980d2e455f0ba6df2ef334d3 Mon Sep 17 00:00:00 2001 From: tehreemnisa Date: Thu, 18 Jan 2024 18:50:53 +0500 Subject: [PATCH] fixing lint errors --- .../tasks/modify_alertmanager_secret.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml index 0be4af8b..4a28b6a5 100644 --- a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml +++ b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml @@ -45,7 +45,9 @@ - name: Re-encode modified alertmanager content for cluster ansible.builtin.set_fact: encoded_alertmanager_secret_content: "{{ modified_alertmanager_secret_content | to_nice_yaml | b64encode }}" - when: $provision_mode == "hubAndSpoke" + vars: + provision_mode_check: "{{ provision_mode }}" + when: provision_mode_check == "hubAndSpoke" - name: Create a new SyncSet for each cluster to patch alertmanager-main secret kubernetes.core.k8s: