Skip to content

Commit

Permalink
Stop using the deprecated salt.transport.client imports.
Browse files Browse the repository at this point in the history
Fixes #64186

Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed May 3, 2023
1 parent fc54caf commit 87074de
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions changelog/64186.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop using the deprecated `salt.transport.client` imports.
8 changes: 3 additions & 5 deletions salt/minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ def connect_master(self, failed=False):
)

# a long-running req channel
self.req_channel = salt.transport.client.AsyncReqChannel.factory(
self.req_channel = salt.channel.client.AsyncReqChannel.factory(
self.opts, io_loop=self.io_loop
)

Expand Down Expand Up @@ -2817,10 +2817,8 @@ def handle_event(self, package):
self.opts["master"],
)

self.req_channel = (
salt.transport.client.AsyncReqChannel.factory(
self.opts, io_loop=self.io_loop
)
self.req_channel = salt.channel.client.AsyncReqChannel.factory(
self.opts, io_loop=self.io_loop
)

# put the current schedule into the new loaders
Expand Down
2 changes: 0 additions & 2 deletions salt/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

log = logging.getLogger(__name__)

# XXX: Add depreication warnings to start using salt.channel.client


class ReqChannel:
"""
Expand Down
1 change: 0 additions & 1 deletion salt/transport/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import salt.ext.tornado.gen
import salt.ext.tornado.ioloop
import salt.ext.tornado.netutil
import salt.transport.client
import salt.transport.frame
import salt.utils.msgpack
from salt.ext.tornado.ioloop import IOLoop
Expand Down
2 changes: 1 addition & 1 deletion salt/transport/local.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging

import salt.utils.files
from salt.transport.client import ReqChannel
from salt.channel.client import ReqChannel

log = logging.getLogger(__name__)

Expand Down
2 changes: 0 additions & 2 deletions salt/transport/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
import salt.ext.tornado.tcpserver
import salt.master
import salt.payload
import salt.transport.client
import salt.transport.frame
import salt.transport.ipc
import salt.transport.server
import salt.utils.asynchronous
import salt.utils.files
import salt.utils.msgpack
Expand Down
2 changes: 0 additions & 2 deletions tests/pytests/functional/transport/server/test_req_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import salt.exceptions
import salt.ext.tornado.gen
import salt.master
import salt.transport.client
import salt.transport.server
import salt.utils.platform
import salt.utils.process
import salt.utils.stringutils
Expand Down

0 comments on commit 87074de

Please sign in to comment.