From 5a9f12a6a43f472f3c5b146e5f96daa89907aae1 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 6 Oct 2017 10:06:00 +0100 Subject: 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 --- bifrost/scripts/bifrost-provision.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bifrost') 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) -- cgit 1.2.3-korg