mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #40422 from github-abcde/loader_allow-partials
salt/loader.py: Allow functools.partial functions to be loaded from m…
This commit is contained in:
commit
5fff321468
@ -1466,7 +1466,7 @@ class LazyLoader(salt.utils.lazy.LazyDict):
|
||||
# private functions are skipped
|
||||
continue
|
||||
func = getattr(mod, attr)
|
||||
if not inspect.isfunction(func):
|
||||
if not inspect.isfunction(func) and not isinstance(func, functools.partial):
|
||||
# Not a function!? Skip it!!!
|
||||
continue
|
||||
# Let's get the function name.
|
||||
|
Loading…
Reference in New Issue
Block a user