mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix unit.test_loader.LoaderGlobalsTest.test_states
This commit is contained in:
parent
8694db10d7
commit
11c02a0be3
2 changed files with 2 additions and 1 deletions
|
@ -629,6 +629,7 @@ class _WithDeprecated(_DeprecationDecorator):
|
|||
return self._call_function(kwargs)
|
||||
|
||||
_decorate.__doc__ = self._function.__doc__
|
||||
_decorate.__wrapped__ = self._function
|
||||
return _decorate
|
||||
|
||||
|
||||
|
|
|
@ -981,7 +981,7 @@ class LoaderGlobalsTest(ModuleCase):
|
|||
# only find salty globals
|
||||
if val.__module__.startswith('salt.loaded'):
|
||||
if hasattr(val, '__globals__'):
|
||||
if '__wrapped__' in val.__globals__:
|
||||
if hasattr(val, '__wrapped__'):
|
||||
global_vars.append(sys.modules[val.__module__].__dict__)
|
||||
else:
|
||||
global_vars.append(val.__globals__)
|
||||
|
|
Loading…
Add table
Reference in a new issue