From 53bb55dc628eb753fe8a9335277642cb04bcf15b Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 14 Jun 2016 13:01:00 +0100 Subject: [PATCH] Ensure that AIO extra indexes config is well formed The AIO bootstrap may produce a user_variables.yml config line which looks like: repo_build_pip_extra_indexes: [u'http://mirror.dfw.rax.openstack.org/wheel/ubuntu-14.04-x86_64/'] This is not valid for Ansible's consumption. This patch ensures that the variable content is appropriately converted to a yaml formatted list which Ansible can consume. Change-Id: Iebb41f849f112c3a71f4265d366cf1783745664d --- tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 index 59d4e87c98..137c202eba 100644 --- a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 +++ b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 @@ -96,7 +96,8 @@ apply_security_hardening: true {% if repo_build_pip_extra_indexes is defined %} ## Wheel mirrors for the repo_build to use -repo_build_pip_extra_indexes: {{ repo_build_pip_extra_indexes }} +repo_build_pip_extra_indexes: +{{ repo_build_pip_extra_indexes | to_nice_yaml }} {% endif %} {% if nova_uca_enable is defined %}