summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexandre Choquette <m.a.choquette@bell.ca>2018-03-23 15:17:32 -0400
committerMarc Alexandre Choquette <m.a.choquette@bell.ca>2018-03-23 15:37:46 -0400
commit17b39971fb28d0e1756170f6e35e650bff64efe3 (patch)
treec3910390263576e6b32449e7088eeaeec2dbdf7d
parent8c37b3e1f9c94fa4d605c1fbd87b59cb2db27cf7 (diff)
Replaced 'dcae' by $STACK_NAME
Script used static 'dcae' stack name, so when changing it in the $STACK_NAME variable it was ignored in the 'stack output show' commands Change-Id: I2c8bbda651dffd7ef4ed6041864af02ef21353eb Issue-ID: OOM-673 Signed-off-by: Marc Alexandre Choquette <m.a.choquette@bell.ca>
-rwxr-xr-xkubernetes/config/docker/init/src/config/dcaegen2/heat/entrypoint.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/config/docker/init/src/config/dcaegen2/heat/entrypoint.sh b/kubernetes/config/docker/init/src/config/dcaegen2/heat/entrypoint.sh
index a4ab371cf1..c9ba83cc4c 100755
--- a/kubernetes/config/docker/init/src/config/dcaegen2/heat/entrypoint.sh
+++ b/kubernetes/config/docker/init/src/config/dcaegen2/heat/entrypoint.sh
@@ -150,11 +150,11 @@ then
sleep 10
# get the DCAE Boostrap VM ip, to configure Robot with it, for Healthcheck
- DCAE_CONTROLLER_IP=`openstack stack output show dcae dcae_floating_ip -c output_value -f yaml | awk '{ print $2}'`
+ DCAE_CONTROLLER_IP=`openstack stack output show $STACK_NAME dcae_floating_ip -c output_value -f yaml | awk '{ print $2}'`
sed -i -e "s/DCAE_CONTROLLER_IP_HERE/$DCAE_CONTROLLER_IP/g" /opt/robot/vm_properties.py;
# Retrieve current deployment random string
- RANDOM_STRING=`openstack stack output show dcae random_string -c output_value -f yaml | awk '{ print $2}'`
+ RANDOM_STRING=`openstack stack output show $STACK_NAME random_string -c output_value -f yaml | awk '{ print $2}'`
SIMPLEDEMO_ONAP_ORG_ZONE_NAME="$RANDOM_STRING.$SIMPLEDEMO_ONAP_ORG_ZONE_NAME"
fi