mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Define some client internal keywords which are expected(and skip errors on them)
This commit is contained in:
parent
f2276afac9
commit
64566a37ef
@ -15,6 +15,14 @@ from salt.utils.doc import strip_rst as _strip_rst
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
CLIENT_INTERNAL_KEYWORDS = frozenset([
|
||||
'client',
|
||||
'cmd',
|
||||
'eauth',
|
||||
'fun',
|
||||
'match'
|
||||
])
|
||||
|
||||
|
||||
class SyncClientMixin(object):
|
||||
'''
|
||||
@ -39,7 +47,7 @@ class SyncClientMixin(object):
|
||||
'''
|
||||
self._verify_fun(fun)
|
||||
l_fun = self.functions[fun]
|
||||
f_call = salt.utils.format_call(l_fun, low)
|
||||
f_call = salt.utils.format_call(l_fun, low, expected_extra_kws=CLIENT_INTERNAL_KEYWORDS)
|
||||
ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user