Améliorations cosmétiques du diagnose Hpy 2.6.0

ref #16985 @10m
This commit is contained in:
Philippe Caseiro 2016-09-07 10:53:58 +02:00
parent 8e658634c9
commit d10c0d1dbc
1 changed files with 3 additions and 2 deletions

View File

@ -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 )