From 02a104d77e546dd65353a99700c876162d0845ec Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Tue, 14 Feb 2017 16:11:03 +0000 Subject: [PATCH] Quote OS_PASSWORD variable Unquoted OS_PASSWORD variable can break shell commands when special characters are used. Closes-Bug: #1663185 Change-Id: Ia61a4ea1861d0f8792355213443b202b15ab862c --- templates/openrc.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/openrc.j2 b/templates/openrc.j2 index 8120599..ffa593e 100644 --- a/templates/openrc.j2 +++ b/templates/openrc.j2 @@ -11,7 +11,7 @@ export NOVA_ENDPOINT_TYPE={{ openrc_nova_endpoint_type }} export OS_ENDPOINT_TYPE={{ openrc_os_endpoint_type }} export OS_INTERFACE={{ openrc_os_endpoint_type }} export OS_USERNAME={{ openrc_os_username }} -export OS_PASSWORD={{ openrc_os_password }} +export OS_PASSWORD="{{ openrc_os_password }}" export OS_PROJECT_NAME={{ openrc_os_tenant_name }} export OS_TENANT_NAME={{ openrc_os_tenant_name }} export OS_AUTH_URL={{ openrc_os_auth_url }}