Merge "Use glance image-show to check for uploaded Docker images"

This commit is contained in:
Jenkins
2014-03-01 16:37:59 +00:00
committed by Gerrit Code Review

View File

@@ -104,8 +104,7 @@ function start_nova_hypervisor {
fi
# Make sure we copied the image in Glance
DOCKER_IMAGE=$(glance image-list | egrep " $DOCKER_IMAGE_NAME ")
if ! is_set DOCKER_IMAGE ; then
if ! (glance image-show "$DOCKER_IMAGE"); then
docker push $DOCKER_REPOSITORY_NAME
fi
}