mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
if the minion fails to find the function return an empty string
This commit is contained in:
parent
395af9faef
commit
5f2c273d30
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue