Fix VM name for diagnose display

This commit is contained in:
Philippe Caseiro 2019-03-01 11:15:17 +01:00
parent 94a498aef6
commit e506b9c2d8
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ then
echo ""
else
for VM in $VMs ; do
NAME=$( one "onevm show $VM" | grep 'NAME' | cut -d: -f2 )
NAME=$( one "onevm show $VM" | grep '^NAME' | cut -d: -f2 )
STAT=$(one "onevm show $VM" | grep '^STATE' | cut -d: -f2 | tr -d ' ' )
printf ". %${len_pf}s => " "$NAME"
eOneStatus "$STAT"