From nobody Mon Oct 14 07:54:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) client-ip=66.187.230.42; envelope-from=kimchi-devel-bounces@ovirt.org; helo=lists.ovirt.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) smtp.mailfrom=kimchi-devel-bounces@ovirt.org; Return-Path: Received: from lists.ovirt.org (lists.phx.ovirt.org [66.187.230.42]) by mx.zohomail.com with SMTPS id 1497599420615283.46599889930246; Fri, 16 Jun 2017 00:50:20 -0700 (PDT) Received: from lists.phx.ovirt.org (localhost [127.0.0.1]) by lists.ovirt.org (Postfix) with ESMTP id 43D5A8206EE; Fri, 16 Jun 2017 07:50:19 +0000 (UTC) Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) by lists.ovirt.org (Postfix) with ESMTPS id 87E458206EA for ; Fri, 16 Jun 2017 07:49:57 +0000 (UTC) Received: from laptop.vms (mhy71-2-88-167-63-197.fbx.proxad.net [88.167.63.197]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Fri, 16 Jun 2017 09:29:54 +0200 X-Original-To: kimchi-devel@ovirt.org X-Greylist: delayed 1201 seconds by postgrey-1.34 at lists.phx.ovirt.org; Fri, 16 Jun 2017 07:49:57 UTC From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: kimchi-devel@ovirt.org Date: Fri, 16 Jun 2017 09:29:39 +0200 Message-Id: <20170616072939.6079-1-cbosdonnat@suse.com> X-Mailer: git-send-email 2.12.2 Subject: [Kimchi-devel] [PATCH] federation: fix logic in model X-BeenThere: kimchi-devel@ovirt.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: kimchi-devel-bounces@ovirt.org Errors-To: kimchi-devel-bounces@ovirt.org X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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') =3D=3D 'off': + if not config.get('server', 'federation') =3D=3D 'on': return =20 # register server on openslp @@ -56,7 +56,7 @@ class PeersModel(object): =20 def get_list(self): # check federation feature is enabled on Wok server - if not config.get('server', 'federation') =3D=3D 'off': + if not config.get('server', 'federation') =3D=3D 'on': return [] =20 cmd =3D ["slptool", "findsrvs", "service:wokd"] --=20 2.12.2 _______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel