Skip to content

Commit fdf2333

Browse files
committed
node: fixed the wrong version identification for the service definition selection
Signed-off-by: AndryNick98 <[email protected]>
1 parent 49ee13a commit fdf2333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

suzieq/poller/worker/nodes/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,8 @@ async def _exec_service(self, service_callback, svc_defn: dict,
10721072
for item in use:
10731073
if item.get('version', '') != "all":
10741074
os_version = item['version']
1075-
opdict = {'>': operator.gt, '<': operator.lt,
1076-
'>=': operator.ge, '<=': operator.le,
1075+
opdict = {'>=': operator.ge, '<=': operator.le,
1076+
'>': operator.gt, '<': operator.lt,
10771077
'=': operator.eq, '!=': operator.ne}
10781078
op = operator.eq
10791079

0 commit comments

Comments
 (0)