From c3c9562d471f596511153e1163c93000e9fccc39 Mon Sep 17 00:00:00 2001 From: Zack Kayyali Date: Fri, 19 Jul 2024 16:32:29 -0400 Subject: [PATCH] Do not fail when incorrect secret value is passed --- .gitignore | 1 + roles/eda/tasks/set_bundle_cacert.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index eb1ed7a6..f742f29a 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ kustomization.yaml *.swo *~ .vscode/ +venv/ \ No newline at end of file diff --git a/roles/eda/tasks/set_bundle_cacert.yml b/roles/eda/tasks/set_bundle_cacert.yml index 95c12946..10cf2584 100644 --- a/roles/eda/tasks/set_bundle_cacert.yml +++ b/roles/eda/tasks/set_bundle_cacert.yml @@ -11,4 +11,4 @@ set_fact: bundle_ca_crt: '{{ bundle_cacert["resources"][0]["data"]["bundle-ca.crt"] | b64decode }}' no_log: "{{ no_log }}" - when: '"bundle-ca.crt" in bundle_cacert["resources"][0]["data"]' + when: 'bundle_cacert["resources"] | length > 0 and "bundle-ca.crt" in bundle_cacert["resources"][0]["data"]'