From cff1c7d3700278263da1a6f0daa381e97df15f28 Mon Sep 17 00:00:00 2001 From: Bob Ball Date: Wed, 18 Dec 2013 13:20:40 +0000 Subject: [PATCH] HEAT_FETCHED_TEST_IMAGE may not be defined in some cases. Some scripts that source stackrc use set -u, which will error when unknown variables are accessed Change-Id: I5af2d58475e1793dfa728b7ce9180fcbba1145e9 --- stackrc | 1 + 1 file changed, 1 insertion(+) diff --git a/stackrc b/stackrc index e89e64dc65..b129197e8f 100644 --- a/stackrc +++ b/stackrc @@ -282,6 +282,7 @@ case "$VIRT_DRIVER" in IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; esac +HEAT_FETCHED_TEST_IMAGE=${HEAT_FETCHED_TEST_IMAGE:-""} if [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-i386-20-20131211.1-sda" ]]; then IMAGE_URLS+=",https://dl.fedoraproject.org/pub/alt/stage/20-RC1.1/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" fi