From 213f13a28399657955be263c936db0a87310b5b1 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 30 Oct 2014 19:49:20 -0400 Subject: [PATCH] Don't hardcode glance protocol when finding trove guest image This allows configuration of trove when devstack is configured for SSL or tls-proxy. Change-Id: I680effda94926951f9068e2df1e354c708aa4495 --- lib/trove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trove b/lib/trove index 1d1b5f406b..4ac7293fbd 100644 --- a/lib/trove +++ b/lib/trove @@ -207,7 +207,7 @@ function init_trove { # The image is uploaded by stack.sh -- see $IMAGE_URLS handling GUEST_IMAGE_NAME=$(basename "$TROVE_GUEST_IMAGE_URL") GUEST_IMAGE_NAME=${GUEST_IMAGE_NAME%.*} - TROVE_GUEST_IMAGE_ID=$(openstack --os-token $TOKEN --os-url http://$GLANCE_HOSTPORT image list | grep "${GUEST_IMAGE_NAME}" | get_field 1) + TROVE_GUEST_IMAGE_ID=$(openstack --os-token $TOKEN --os-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT image list | grep "${GUEST_IMAGE_NAME}" | get_field 1) if [ -z "$TROVE_GUEST_IMAGE_ID" ]; then # If no glance id is found, skip remaining setup echo "Datastore ${TROVE_DATASTORE_TYPE} will not be created: guest image ${GUEST_IMAGE_NAME} not found."