Change in returned storage status format from microk8s 23/9623/1 v8.0.1
authorcalvinosanc1 <guillermo.calvino@canonical.com>
Fri, 21 Aug 2020 10:12:52 +0000 (12:12 +0200)
committercalvinosanc1 <guillermo.calvino@canonical.com>
Fri, 21 Aug 2020 10:12:52 +0000 (12:12 +0200)
Change-Id: I70a7c1ee52381f3465266d8b455cd1bc023dbf2e
Signed-off-by: calvinosanc1 <guillermo.calvino@canonical.com>
installers/charmed_install.sh

index f5d1389..4e332ed 100755 (executable)
@@ -88,8 +88,8 @@ EOF
                 sg ${KUBEGRP} -c "microk8s.status"
                 exit 1
             fi
-            sg ${KUBEGRP} -c "microk8s.status" | grep 'storage: enabled'
-            if [ $? -eq 0 ]; then
+            storage_status=`sg ${KUBEGRP} -c "microk8s.status -a storage"`
+            if [[ $storage_status == "enabled" ]]; then
                 break
             fi
             sleep 1