Correct order for Grafana 17/12417/1 v10.1.2
authorMark Beierl <mark.beierl@canonical.com>
Fri, 29 Jul 2022 19:52:35 +0000 (15:52 -0400)
committerMark Beierl <mark.beierl@canonical.com>
Fri, 29 Jul 2022 19:52:35 +0000 (15:52 -0400)
Change-Id: I225cb160149b875982021e8855a2c68f39f218f7
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
installers/charmed_install.sh

index 163ed06..978a696 100755 (executable)
@@ -286,10 +286,10 @@ function deploy_charmed_osm(){
     juju config -m $MODEL_NAME prometheus site_url=https://prometheus.${API_SERVER}.nip.io
 
     echo "Waiting for deployment to finish..."
+    check_osm_deployed
     grafana_leader=`juju status -m $MODEL_NAME grafana | grep "*" | cut -d "*" -f 1`
     grafana_admin_password=`juju run -m $MODEL_NAME --unit $grafana_leader "echo \\$GF_SECURITY_ADMIN_PASSWORD"`
     juju config -m $MODEL_NAME mon grafana_password=$grafana_admin_password
-    check_osm_deployed
     echo "OSM with charms deployed"
 }