mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Swap '/' for '.' when matching
This commit is contained in:
parent
3173673dcc
commit
eb517e1a39
1 changed files with 4 additions and 1 deletions
|
@ -774,7 +774,10 @@ class Pillar(object):
|
|||
key = None
|
||||
|
||||
try:
|
||||
matched_pstates += fnmatch.filter(self.avail[saltenv], sub_sls)
|
||||
matched_pstates.extend(fnmatch.filter(
|
||||
self.avail[saltenv],
|
||||
sub_sls.replace('/', '.'),
|
||||
))
|
||||
except KeyError:
|
||||
errors.extend(
|
||||
['No matching pillar environment for environment '
|
||||
|
|
Loading…
Add table
Reference in a new issue