From 627aa7d91c3ecb9282e84835d2f4eb9ec43d0f9b Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Thu, 29 Oct 2020 11:46:31 +0000 Subject: [PATCH 1/2] function has been renamed to salt_function into the internal proxy Runner --- salt_sproxy/scripts.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/salt_sproxy/scripts.py b/salt_sproxy/scripts.py index 81e39a0..a722851 100644 --- a/salt_sproxy/scripts.py +++ b/salt_sproxy/scripts.py @@ -33,7 +33,9 @@ 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) @@ -48,7 +50,9 @@ 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) From 6cef5ae368eeb19bb0fae5ebd784f589000a2203 Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Thu, 29 Oct 2020 11:46:56 +0000 Subject: [PATCH 2/2] Bump to 2020.10.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 42874d0..35a466c 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( name=name, - version='2020.10.0', + version='2020.10.1', namespace_packages=['salt_sproxy'], packages=find_packages(), author='Mircea Ulinic',