From e506b9c2d885f92f181f2c3618191919aa734b58 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 1 Mar 2019 11:15:17 +0100 Subject: [PATCH] Fix VM name for diagnose display --- diagnose/04-virtualisation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagnose/04-virtualisation b/diagnose/04-virtualisation index 58fbb0d..dfc15a5 100755 --- a/diagnose/04-virtualisation +++ b/diagnose/04-virtualisation @@ -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"