Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
salt.20088
adds-explicit-type-cast-for-port.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File adds-explicit-type-cast-for-port.patch of Package salt.20088
From 12d67e0cfa54399f3a0b6ae0d4faa09793fa2b0f Mon Sep 17 00:00:00 2001 From: Jochen Breuer <jbreuer@suse.de> Date: Wed, 1 Apr 2020 16:13:23 +0200 Subject: [PATCH] Adds explicit type cast for port If a port was passed as a string, the execution logic was broken and a wrong set of remotes was returned. The type casting to int solves this issue. --- salt/utils/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/utils/network.py b/salt/utils/network.py index 25b2d06758..1705a5809d 100644 --- a/salt/utils/network.py +++ b/salt/utils/network.py @@ -1626,9 +1626,9 @@ def _netlink_tool_remote_on(port, which_end): local_host, local_port = chunks[3].rsplit(":", 1) remote_host, remote_port = chunks[4].rsplit(":", 1) - if which_end == "remote_port" and int(remote_port) != port: + if which_end == "remote_port" and int(remote_port) != int(port): continue - if which_end == "local_port" and int(local_port) != port: + if which_end == "local_port" and int(local_port) != int(port): continue remotes.add(remote_host.strip("[]")) -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor