Browse Source

better leader tests

develop
Emmanuel Garette 5 months ago
parent
commit
fe79beab8b
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      lib/eole/func_glust.sh

+ 4
- 4
lib/eole/func_glust.sh View File

@@ -18,13 +18,13 @@ function glusterTest {
18 18
                     [[ $? != 0 ]] && echo "le test est en erreur sur $remote_name" && exit 1
19 19
                 fi
20 20
             fi
21
-            if [ ! $hostname_idx = 0 ]; then
22
-                # if not primary, test only primary
23
-                break
24
-            fi
25 21
         else
26 22
             hostname=$remote_name
27 23
         fi
24
+        if [ $hostname_idx = 0 ]; then
25
+            # if primary, test only primary
26
+            break
27
+        fi
28 28
         idx=$((idx+1))
29 29
     done
30 30
     if [ -z $hostname ]; then

Loading…
Cancel
Save