syntax issues in the client and payload modules

This commit is contained in:
Thomas S Hatch 2011-03-07 16:32:18 -07:00
parent 3f76c40f91
commit 3c3fdf3faa
2 changed files with 4 additions and 2 deletions

View file

@ -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}

View file

@ -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)