Skip to content

Commit

Permalink
function has been renamed to salt_function into the internal proxy Ru…
Browse files Browse the repository at this point in the history
…nner
  • Loading branch information
mirceaulinic committed Oct 29, 2020
1 parent c45a7ed commit b90f101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt_sproxy/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def sapi_sproxy(
'''
Shortcut to invoke an arbitrary Salt function via sproxy.
'''
kwargs.update({'function': fun, 'tgt': tgt, 'tgt_type': tgt_type, 'static': True})
kwargs.update({'salt_function': fun, 'tgt': tgt, 'tgt_type': tgt_type, 'static': True})
kwargs = _prep_kwargs(kwargs, self.opts)
log.debug('New kwargs:')
log.debug(kwargs)
Expand All @@ -48,7 +48,7 @@ def sapi_sproxy_async(
'''
Shortcut to invoke an arbitrary Salt function via sproxy, asynchronously.
'''
kwargs.update({'function': fun, 'tgt': tgt, 'tgt_type': tgt_type, 'static': True})
kwargs.update({'salt_function': fun, 'tgt': tgt, 'tgt_type': tgt_type, 'static': True})
kwargs = _prep_kwargs(kwargs, self.opts)
log.debug('New kwargs:')
log.debug(kwargs)
Expand Down

0 comments on commit b90f101

Please sign in to comment.