Changes output to emit the actual status.
Outputs the result of the osm vim-list command.
Change-Id: Iaf01715193383b6a6bcee839f26095bf2ccdde77
Signed-off-by: beierlm <mark.beierl@canonical.com>
do
((i++))
if [[ $i -eq 5 ]]; then
- echo "VIM stuck in PROCESSING after 50 seconds"
+ echo "VIM stuck in ${STATUS} after 50 seconds"
osm vim-delete --force ${VIM_TARGET}
sleep 5
break
fi
sleep 10
- STATUS=`osm vim-list --long | grep ${VIM_TARGET} | awk '{print $9}'`
+ VIM_LIST=`osm vim-list --long | grep ${VIM_TARGET}`
+ echo VIM status: ${VIM_LIST}
+ STATUS=`echo ${VIM_LIST} | awk '{print $9}'`
done
if [[ ${STATUS} = "ENABLED" ]] ; then
break