mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix loader condition
This commit is contained in:
parent
b8d0842fe1
commit
e91c23d494
@ -778,8 +778,9 @@ class Loader(object):
|
||||
for mod in self.modules:
|
||||
if not hasattr(mod, '__salt__'):
|
||||
mod.__salt__ = funcs
|
||||
elif not in_pack(pack, '__salt__') and \
|
||||
str(mod.__name__).startswith('salt.loaded.int.grain'):
|
||||
elif hasattr(mod, '__salt__') or (not in_pack(pack, '__salt__') and \
|
||||
str(mod.__name__).startswith('salt.loaded.int.grain')
|
||||
):
|
||||
mod.__salt__.update(funcs)
|
||||
else:
|
||||
mod.__salt__ = funcs
|
||||
|
Loading…
Reference in New Issue
Block a user