remove node wait in HA mode

This commit is contained in:
Emmanuel Garette 2019-03-01 12:07:16 +01:00
parent 94a498aef6
commit 89128ccba5
1 changed files with 6 additions and 5 deletions

View File

@ -201,7 +201,6 @@ for host in ${HAPY_SLV}; do
EchoVert " * Enregistrement du noeud" EchoVert " * Enregistrement du noeud"
register_node ${host} register_node ${host}
# wait_node_ok ${host}
if [[ ${HAPY_HA} == "oui" ]] if [[ ${HAPY_HA} == "oui" ]]
then then
if [[ $DBMODE == "sqlite" ]] if [[ $DBMODE == "sqlite" ]]
@ -213,10 +212,12 @@ for host in ${HAPY_SLV}; do
fi fi
fi fi
sync_nodes sync_nodes
wait_node_ok ${HAPY_SLV[${i}]} if [[ ${HAPY_HA} != "oui" ]]
if [[ ${?} -ne 0 ]] wait_node_ok ${HAPY_SLV[${i}]}
then if [[ ${?} -ne 0 ]]
EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !" then
EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
fi
fi fi
done done