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
This commit is contained in:
James E. Blair 2016-01-29 13:16:22 -08:00
parent 6e00d71db4
commit 981d5d2970

View File

@ -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 <<EOF