]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix cluster reset
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Mar 2019 06:39:17 +0000 (14:39 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Mar 2019 06:39:17 +0000 (14:39 +0800)
src/tests/modules/redis/cluster_reset.inc

index e0380b1e5986b825f4841510d8004309a870a285..6a59623dc95b6b3875a1e7ca1282d9483eecfd9d 100644 (file)
@@ -48,7 +48,7 @@ update request {
 }
 if (!&Tmp-String-0 || (&Tmp-String-0 == '')) {
        update request {
-               &Tmp-String-0 = $ENV{REDIS_IPPOOL_TEST_SERVER}
+               &Tmp-String-0 := $ENV{REDIS_IPPOOL_TEST_SERVER}
        }
 }
 
@@ -60,7 +60,6 @@ if (!&Tmp-String-0 || (&Tmp-String-0 == '')) {
 #  - 127.0.0.1:30003 - master [10923-16383]
 #  - 127.0.0.1:30006 - slave
 foreach &control:Tmp-Integer-0 {
-
        #
        #  Force a remap as the slaves don't show up in the cluster immediately
        #
@@ -80,10 +79,10 @@ foreach &control:Tmp-Integer-0 {
                                break
                        }
                }
+       }
 
-               update request {
-                       &Module-Failure-Message !* ANY
-               }
+       update request {
+               &Module-Failure-Message !* ANY
        }
 
        # Perform checks every 0.5 seconds