Fix VM name for diagnose display
This commit is contained in:
parent
94a498aef6
commit
e506b9c2d8
@ -80,7 +80,7 @@ then
|
|||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
for VM in $VMs ; do
|
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 ' ' )
|
STAT=$(one "onevm show $VM" | grep '^STATE' | cut -d: -f2 | tr -d ' ' )
|
||||||
printf ". %${len_pf}s => " "$NAME"
|
printf ". %${len_pf}s => " "$NAME"
|
||||||
eOneStatus "$STAT"
|
eOneStatus "$STAT"
|
||||||
|
Loading…
Reference in New Issue
Block a user