From 81541627f71648f62926e6fd00aa7d0b7d03ea75 Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Wed, 30 Jun 2021 13:32:18 +0100 Subject: [PATCH 1/2] Fix #240: Salt 3003.1 KeyError __runner__ It seems like in Salt 3003.1, there were some changes around the way objects are loaded, and then indexed by their ``name`` attribute. As we're injecting the ``__runner__`` object and make it available as the ``__salt__`` dunder, it also requires to update the obj name. --- salt_sproxy/_roster/file.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt_sproxy/_roster/file.py b/salt_sproxy/_roster/file.py index 80bc15dd..f920d27b 100644 --- a/salt_sproxy/_roster/file.py +++ b/salt_sproxy/_roster/file.py @@ -29,6 +29,7 @@ def targets(tgt, tgt_type='glob', **kwargs): ''' template = get_roster_file(__opts__) rend = salt.loader.render(__opts__, {}) + __runner__.name = '__salt__' kwargs['__salt__'] = __runner__ pool = compile_template( template, From 4e5a4b4c026501010466e82aaa8e5be09ea19b2d Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Wed, 30 Jun 2021 13:39:27 +0100 Subject: [PATCH 2/2] Version 2021.6.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 85a80a96..9254995d 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( name=name, - version='2021.6.0', + version='2021.6.1', namespace_packages=['salt_sproxy'], packages=find_packages(), author='Mircea Ulinic',