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 )