Fix up the wrong key
This commit is contained in:
parent
a4bece898e
commit
667a1218ef
|
@ -125,7 +125,7 @@ class RouterInstance():
|
||||||
|
|
||||||
def set_primary(self):
|
def set_primary(self):
|
||||||
result = zkhandler.writedata(self.zk_conn, {
|
result = zkhandler.writedata(self.zk_conn, {
|
||||||
'/routers/primary': self.name,
|
'/routers': self.name,
|
||||||
'/routers/{}/networkstate'.format(self.name): 'primary',
|
'/routers/{}/networkstate'.format(self.name): 'primary',
|
||||||
})
|
})
|
||||||
if not result:
|
if not result:
|
||||||
|
|
Loading…
Reference in New Issue