Browse Source

remove node wait in HA mode

Emmanuel Garette 2 months ago
parent
commit
89128ccba5
1 changed files with 6 additions and 5 deletions
  1. 6
    5
      scripts/onehost_create_all

+ 6
- 5
scripts/onehost_create_all View File

@@ -201,7 +201,6 @@ for host in ${HAPY_SLV}; do
201 201
 
202 202
     EchoVert " * Enregistrement du noeud"
203 203
     register_node ${host}
204
-    # wait_node_ok ${host}
205 204
     if [[ ${HAPY_HA} == "oui" ]]
206 205
     then
207 206
         if [[ $DBMODE == "sqlite" ]]
@@ -213,10 +212,12 @@ for host in ${HAPY_SLV}; do
213 212
         fi
214 213
     fi
215 214
     sync_nodes
216
-    wait_node_ok ${HAPY_SLV[${i}]}
217
-    if [[ ${?} -ne 0 ]]
218
-    then
219
-        EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
215
+    if [[ ${HAPY_HA} != "oui" ]]
216
+        wait_node_ok ${HAPY_SLV[${i}]}
217
+        if [[ ${?} -ne 0 ]]
218
+        then
219
+            EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
220
+        fi
220 221
     fi
221 222
 done
222 223