mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
identical_signature_wrapper
adds __wrapped__
to function globals
This commit is contained in:
parent
10283b4534
commit
e9f6a1228d
1 changed files with 1 additions and 1 deletions
|
@ -981,7 +981,7 @@ class LoaderGlobalsTest(ModuleCase):
|
|||
# only find salty globals
|
||||
if val.__module__.startswith('salt.loaded'):
|
||||
if hasattr(val, '__globals__'):
|
||||
if hasattr(val, '__wrapped__'):
|
||||
if hasattr(val, '__wrapped__') or '__wrapped__' in val.__globals__:
|
||||
global_vars.append(sys.modules[val.__module__].__dict__)
|
||||
else:
|
||||
global_vars.append(val.__globals__)
|
||||
|
|
Loading…
Add table
Reference in a new issue