Use self calls
This commit is contained in:
parent
491a6556c3
commit
050979dd55
|
@ -193,8 +193,8 @@ class RouterInstance():
|
||||||
|
|
||||||
# Try to set ourself primary if there is no primary in the cluster
|
# Try to set ourself primary if there is no primary in the cluster
|
||||||
cluster_has_primary = False
|
cluster_has_primary = False
|
||||||
for router in t_routers:
|
for router in self.t_routers:
|
||||||
if t_routers[router].getnetworkstate() == 'primary':
|
if self.t_routers[router].getnetworkstate() == 'primary':
|
||||||
cluster_has_primary = True
|
cluster_has_primary = True
|
||||||
break
|
break
|
||||||
if not cluster_has_primary:
|
if not cluster_has_primary:
|
||||||
|
|
Loading…
Reference in New Issue