Fix gerrit 3552, incorrect path
build inventory for maas playbook use
Vagrant uses the parent directory of Vagrantfile to name it's VMs
Change-Id: I4780b2a40d3531ae92a89f35632227eb56c055e3
diff --git a/scripts/cord-in-a-box.sh b/scripts/cord-in-a-box.sh
index b667519..4951df2 100755
--- a/scripts/cord-in-a-box.sh
+++ b/scripts/cord-in-a-box.sh
@@ -12,6 +12,7 @@
CONFIG=config/cord_in_a_box.yml
SSHCONFIG=~/.ssh/config
VAGRANT_CWD=${CORDDIR}/build/
+VAGRANT_VM_PREFIX=build
# CORD versioning
REPO_BRANCH="master"
@@ -378,7 +379,7 @@
for i in `seq 1 $NUM_COMPUTE_NODES`;
do
echo adding the compute node: compute-node-$i
- add_compute_node compute-node-$i cord-in-a-box_compute-node-$i
+ add_compute_node compute-node-$i ${VAGRANT_VM_PREFIX}_compute-node-$i
done
echo "==> Adding compute nodes: Complete"