From 1b008f3ae1cc32cdf3136633a322d6f14c9875a2 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 24 Sep 2018 01:57:19 -0400 Subject: [PATCH] Correct problem with t_router calls --- router-daemon/pvcrd/RouterInstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router-daemon/pvcrd/RouterInstance.py b/router-daemon/pvcrd/RouterInstance.py index 00f0f258..80b58983 100644 --- a/router-daemon/pvcrd/RouterInstance.py +++ b/router-daemon/pvcrd/RouterInstance.py @@ -74,8 +74,8 @@ class RouterInstance(): if self.network_state == 'primary': self.set_primary() for router in t_router: - if router.getname() != self.name: - router.set_secondary() + if t_router[router].getname() != self.name: + t_router[router].set_secondary() # Get value functions