From d10c0d1dbc5269939e490c1d5cbe475d379038db Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 7 Sep 2016 10:53:58 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20cosm=C3=A9tiques=20du=20di?= =?UTF-8?q?agnose=20Hpy=202.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #16985 @10m --- diagnose/04-virtualisation | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diagnose/04-virtualisation b/diagnose/04-virtualisation index 465208f..47d0563 100644 --- a/diagnose/04-virtualisation +++ b/diagnose/04-virtualisation @@ -28,7 +28,8 @@ TestServiceStatus() { eOneStatus() { [ "$1" = "STOPPED" -o "$1" = "UNKNOWN" ] && EchoRouge "$1" && return - [ "$1" = "ACTIVE" ] && EchoVert "$1" && return + [ "$1" = "off" ] && EchoRouge "$1" && return + [ "$1" = "ACTIVE" -o "$1" = "on" ] && EchoVert "$1" && return EchoOrange "$1" } @@ -48,7 +49,6 @@ TestService "Proxy VNC" $(CreoleGet "ip_sunstone"):$(CreoleGet "vnc_proxy_port_s if [ "$(CreoleGet 'activer_oneflow' 'non')" == 'oui' ]; then TestService "OneFlow" $(CreoleGet "ip_oneflow"):$(CreoleGet "port_oneflow") fi -echo "" TestServiceStatus "OpenVswitch" openvswitch-switch echo "" @@ -76,6 +76,7 @@ VMs=$( one 'onevm list -l ID,NAME,STAT' | tail -n +2 | grep -ve '\-TEST ' | awk if [[ -z ${VMs} ]] then printf ". %${len_pf}s " "Pas de machines virtuelles instanciƩes" + echo "" else for VM in $VMs ; do NAME=$( one "onevm show $VM" | grep 'NAME' | cut -d: -f2 )