From af240d3958841f90686d39c088d2f714b4acd4c3 Mon Sep 17 00:00:00 2001 From: Hugo Blom Date: Mon, 27 Sep 2021 10:14:22 +0200 Subject: [PATCH] Check if openstack application credentials are empty since they always exists (#8021) --- .../openstack/templates/external-openstack-cloud-config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-config.j2 b/roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-config.j2 index ab8d5f39bad..46e4c6e6dff 100644 --- a/roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-config.j2 +++ b/roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-config.j2 @@ -1,6 +1,6 @@ [Global] auth-url="{{ external_openstack_auth_url }}" -{% if external_openstack_application_credential_id is not defined and external_openstack_application_credential_name is not defined %} +{% if external_openstack_application_credential_id == "" and external_openstack_application_credential_name == "" %} username="{{ external_openstack_username }}" password="{{ external_openstack_password }}" {% endif %}