The test checking for the federation configuration in the model were
obviously wrong: invert them.
---
src/wok/model/peers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/wok/model/peers.py b/src/wok/model/peers.py
index 02afd599..d7fd7882 100644
--- a/src/wok/model/peers.py
+++ b/src/wok/model/peers.py
@@ -30,7 +30,7 @@ from wok.utils import run_command, wok_log
class PeersModel(object):
def __init__(self, **kargs):
# check federation feature is enabled on Wok server
- if not config.get('server', 'federation') == 'off':
+ if not config.get('server', 'federation') == 'on':
return
# register server on openslp
@@ -56,7 +56,7 @@ class PeersModel(object):
def get_list(self):
# check federation feature is enabled on Wok server
- if not config.get('server', 'federation') == 'off':
+ if not config.get('server', 'federation') == 'on':
return []
cmd = ["slptool", "findsrvs", "service:wokd"]
--
2.12.2