mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix PyLint C0103 on salt.cli.caller
. Refs #1775.
This commit is contained in:
parent
1d6200971c
commit
f35b2bcf5f
@ -58,7 +58,7 @@ class Caller(object):
|
||||
sys.stderr.write('Function {0} is not available\n'.format(fun))
|
||||
sys.exit(1)
|
||||
try:
|
||||
args, kw = salt.minion.detect_kwargs(
|
||||
args, kwargs = salt.minion.detect_kwargs(
|
||||
self.minion.functions[fun], self.opts['arg'])
|
||||
sdata = {
|
||||
'fun': fun,
|
||||
@ -67,7 +67,7 @@ class Caller(object):
|
||||
'tgt': 'salt-call'}
|
||||
with salt.utils.fopen(proc_fn, 'w+') as fp_:
|
||||
fp_.write(self.serial.dumps(sdata))
|
||||
ret['return'] = self.minion.functions[fun](*args, **kw)
|
||||
ret['return'] = self.minion.functions[fun](*args, **kwargs)
|
||||
except (TypeError, CommandExecutionError) as exc:
|
||||
msg = 'Error running \'{0}\': {1}\n'
|
||||
active_level = LOG_LEVELS.get(
|
||||
|
Loading…
Reference in New Issue
Block a user