[Kimchi-devel] [PATCH] federation: fix logic in model

Cédric Bosdonnat posted 1 patch 77 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/kimchi tags/patchew/20170616072939.6079-1-cbosdonnat@suse.com
src/wok/model/peers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

[Kimchi-devel] [PATCH] federation: fix logic in model

Posted by Cédric Bosdonnat 77 weeks ago
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

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] federation: fix logic in model

Posted by Aline Manera 76 weeks ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel