mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set up the default salt payload
This commit is contained in:
parent
6833289132
commit
802f0deb45
1 changed files with 1 additions and 2 deletions
|
@ -20,13 +20,12 @@ def unpackage(package):
|
|||
'''
|
||||
return pickle.loads(package)
|
||||
|
||||
def format_payload(enc, cmd, **kwargs):
|
||||
def format_payload(enc, **kwargs):
|
||||
'''
|
||||
Pass in the required arguments for a payload, the enc type and the cmd,
|
||||
then a list of keyword args to generate the body of the load dict.
|
||||
'''
|
||||
payload = {'enc': enc}
|
||||
load = {'cmd': cmd}
|
||||
for key in kwargs:
|
||||
load[key: kwargs[key]]
|
||||
payload['load'] = load
|
||||
|
|
Loading…
Add table
Reference in a new issue