if the minion fails to find the function return an empty string

This commit is contained in:
Thomas S Hatch 2011-03-14 22:47:13 -06:00
parent 395af9faef
commit 5f2c273d30

View file

@ -121,6 +121,8 @@ class Minion(object):
if self.functions.has_key(data['fun']):
ret['return'] = self.functions[data['fun']](*data['arg'])
else:
ret['return'] = ''
ret['jid'] = data['jid']
return ret
@ -162,7 +164,7 @@ class Minion(object):
def _return_pub(self, ret):
'''
Returnt the data from the executed command to the master server
Return the data from the executed command to the master server
'''
context = zmq.Context()
socket = context.socket(zmq.REQ)