Adds image overlay to bundle 63/9363/1
authorbeierlm <mark.beierl@canonical.com>
Wed, 8 Jul 2020 15:43:59 +0000 (11:43 -0400)
committerbeierlm <mark.beierl@canonical.com>
Wed, 8 Jul 2020 15:43:59 +0000 (11:43 -0400)
When installing using a bundle, the image overlay was not being
generated, resulting in the --tag option being ignored.

Bug 1130

Change-Id: I8e474d60b03abcb913d8586c8d643d099f1d8baf
Signed-off-by: beierlm <mark.beierl@canonical.com>
installers/charmed_install.sh

index 3ebf179..94bd705 100755 (executable)
@@ -133,11 +133,11 @@ function deploy_charmed_osm(){
     fi
     echo "Deploying OSM with charms"
     # echo $BUNDLE
+    images_overlay=""
+    [ -v TAG ] && generate_images_overlay && images_overlay="--overlay $IMAGES_OVERLAY_FILE"
     if [ -v BUNDLE ]; then
-        juju deploy $BUNDLE --overlay ~/.osm/vca-overlay.yaml
+        juju deploy $BUNDLE --overlay ~/.osm/vca-overlay.yaml $images_overlay
     else
-        images_overlay=""
-        [ -v TAG ] && generate_images_overlay && images_overlay="--overlay $IMAGES_OVERLAY_FILE"
         juju deploy osm --overlay ~/.osm/vca-overlay.yaml $images_overlay
     fi
     echo "Waiting for deployment to finish..."