Update install_osm.sh to solve the issue with no valid OpenPGP data found
[osm/devops.git] / installers / charmed_install.sh
index 81ede58..52f07f3 100755 (executable)
@@ -295,7 +295,7 @@ function check_osm_deployed() {
     previous_count=0
     while true
     do
-        service_count=$(juju status -m $MODEL_NAME | grep kubernetes | grep active | wc -l)
+        service_count=$(juju status --format json -m $MODEL_NAME | jq '.applications[]."application-status".current' | grep active | wc -l)
         echo "$service_count / $total_service_count services active"
         if [ $service_count -eq $total_service_count ]; then
             break