From fdf2333e898e99806a05942076389b5ac993e534 Mon Sep 17 00:00:00 2001 From: AndryNick98 Date: Thu, 22 Feb 2024 13:02:45 +0100 Subject: [PATCH] node: fixed the wrong version identification for the service definition selection Signed-off-by: AndryNick98 --- suzieq/poller/worker/nodes/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suzieq/poller/worker/nodes/node.py b/suzieq/poller/worker/nodes/node.py index 8987c3be48..001942e272 100644 --- a/suzieq/poller/worker/nodes/node.py +++ b/suzieq/poller/worker/nodes/node.py @@ -1072,8 +1072,8 @@ async def _exec_service(self, service_callback, svc_defn: dict, for item in use: if item.get('version', '') != "all": os_version = item['version'] - opdict = {'>': operator.gt, '<': operator.lt, - '>=': operator.ge, '<=': operator.le, + opdict = {'>=': operator.ge, '<=': operator.le, + '>': operator.gt, '<': operator.lt, '=': operator.eq, '!=': operator.ne} op = operator.eq