mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
this supports complex grain types
This commit is contained in:
parent
a1049565eb
commit
0d875bf94b
@ -437,8 +437,7 @@ def filter_by(lookup_dict, grain='os_family', merge=None, default='default', bas
|
||||
'''
|
||||
|
||||
ret = lookup_dict.get(
|
||||
__grains__.get(
|
||||
grain, default),
|
||||
salt.utils.traverse_dict_and_list(__grains__, grain, None),
|
||||
lookup_dict.get(
|
||||
default, None)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user