From: Markos Chandras Date: Fri, 6 Oct 2017 09:06:00 +0000 (+0100) Subject: bifrost: bifrost-provision.sh: Always initialize XCI_ANSIBLE_VERBOSITY X-Git-Tag: 6.0.0~268 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=5a9f12a6a43f472f3c5b146e5f96daa89907aae1;p=releng-xci.git bifrost: bifrost-provision.sh: Always initialize XCI_ANSIBLE_VERBOSITY The XCI_ANSIBLE_VERBOSITY is normally exported by the XCI bootstrapping process. However, sometimes it's necessary to run bifrost-provision.sh by itself so we can debug machine provisioning. As a result of which, we need to initialize this variable properly so we don't fail with 'unbound variable' errors. Change-Id: I81c59cf8eb3369c001e952c2c0a2846ed8d95cdf Signed-off-by: Markos Chandras --- diff --git a/bifrost/scripts/bifrost-provision.sh b/bifrost/scripts/bifrost-provision.sh index bd9493e6..d48d6a89 100755 --- a/bifrost/scripts/bifrost-provision.sh +++ b/bifrost/scripts/bifrost-provision.sh @@ -19,6 +19,9 @@ USE_DHCP="false" USE_VENV="false" BUILD_IMAGE=true PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-3600} +# This is normally exported by XCI env but we should initialize it here +# in case we run this script on its own for debug purposes +XCI_ANSIBLE_VERBOSITY=${XCI_ANSIBLE_VERBOSITY:-} # Ensure the right inventory files is used based on branch CURRENT_BIFROST_BRANCH=$(git rev-parse --abbrev-ref HEAD)