Fix return interface defaults

This commit is contained in:
Thomas S Hatch 2011-04-16 15:13:35 -06:00
parent 45e5872995
commit 8a8c4c99b5
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class LocalClient(object):
except:
raise SaltClientError('Failed to read in the salt root key')
def cmd(self, tgt, fun, arg=(), timeout=5, expr_form='glob', ret='master'):
def cmd(self, tgt, fun, arg=(), timeout=5, expr_form='glob', ret=''):
'''
Execute a salt command and return.
'''
@ -185,7 +185,7 @@ class LocalClient(object):
'exsel': self._check_facter_minions
}[expr_form](expr)
def pub(self, tgt, fun, arg=(), expr_form='glob', ret='master'):
def pub(self, tgt, fun, arg=(), expr_form='glob', ret=''):
'''
Take the required arguemnts and publish the given command.
Arguments:

View File

@ -267,9 +267,9 @@ class Minion(object):
+ ' exception: ' + str(exc))
ret['return'] = exc
ret['jid'] = data['jid']
if data['return']:
if data['ret']:
try:
self.returners[data['return']](ret)
self.returners[data['ret']](ret)
except Exception as exc:
self.opts['logger'].error('The return failed for job'\
+ data['jid'] + ' ' + exc)