mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
syntax issues in the client and payload modules
This commit is contained in:
parent
3f76c40f91
commit
3c3fdf3faa
2 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,7 @@ The data structurte needs to be:
|
|||
|
||||
import os
|
||||
import re
|
||||
import glob
|
||||
|
||||
# Import zmq modules
|
||||
import zmq
|
||||
|
@ -106,7 +107,7 @@ class LocalClient(object):
|
|||
# connect to the req server
|
||||
# send!
|
||||
# return what we get back
|
||||
minions = self.check_minons(tgt)
|
||||
minions = self.check_minions(tgt)
|
||||
if not minions:
|
||||
return {'jid': '',
|
||||
'minions': minions}
|
||||
|
|
|
@ -24,8 +24,9 @@ def format_payload(enc, **kwargs):
|
|||
then a list of keyword args to generate the body of the load dict.
|
||||
'''
|
||||
payload = {'enc': enc}
|
||||
load = {}
|
||||
for key in kwargs:
|
||||
load[key: kwargs[key]]
|
||||
load[key] = kwargs[key]
|
||||
payload['load'] = load
|
||||
return package(payload)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue