mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove salt.payload.Serial
This commit is contained in:
parent
db228b3430
commit
c070da586b
2 changed files with 1 additions and 20 deletions
1
changelog/64459.removed.md
Normal file
1
changelog/64459.removed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Remove salt.payload.Serial
|
|
@ -233,26 +233,6 @@ def dump(msg, fn_):
|
|||
fn_.close()
|
||||
|
||||
|
||||
class Serial:
|
||||
"""
|
||||
Create a serialization object, this object manages all message
|
||||
serialization in Salt
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
salt.utils.versions.warn_until(
|
||||
"Chlorine",
|
||||
"The `salt.payload.Serial` class has been deprecated, "
|
||||
"and is set to be removed in {version}. "
|
||||
"Please use `salt.payload.loads` and `salt.payload.dumps`.",
|
||||
)
|
||||
|
||||
loads = staticmethod(loads)
|
||||
dumps = staticmethod(dumps)
|
||||
dump = staticmethod(dump)
|
||||
load = staticmethod(load)
|
||||
|
||||
|
||||
class SREQ:
|
||||
"""
|
||||
Create a generic interface to wrap salt zeromq req calls.
|
||||
|
|
Loading…
Add table
Reference in a new issue