From 981d5d2970366552a85d95a8c9561c91226a4aa0 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 29 Jan 2016 13:16:22 -0800 Subject: [PATCH] Lowercase mirror host Pip performs a case-sensitive comparison on the trusted host. Just make sure all our hostnames are lower case. Change-Id: I63a66978a599629cb713c2de99618455f40ed0cc --- nodepool/scripts/configure_mirror.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nodepool/scripts/configure_mirror.sh b/nodepool/scripts/configure_mirror.sh index 0059009081..a4db82e7c0 100755 --- a/nodepool/scripts/configure_mirror.sh +++ b/nodepool/scripts/configure_mirror.sh @@ -19,6 +19,7 @@ source /etc/nodepool/provider NODEPOOL_MIRROR_HOST=${NODEPOOL_MIRROR_HOST:-mirror.$NODEPOOL_REGION.$NODEPOOL_CLOUD.openstack.org} +NODEPOOL_MIRROR_HOST=$(echo $NODEPOOL_MIRROR_HOST|tr '[:upper:]' '[:lower:]') NODEPOOL_PYPI_MIRROR=${NODEPOOL_PYPI_MIRROR:-http://$NODEPOOL_MIRROR_HOST/pypi/simple} cat >/tmp/pip.conf <