Swap '/' for '.' when matching

This commit is contained in:
Wayne Werner 2019-03-06 14:00:03 -06:00
parent 3173673dcc
commit eb517e1a39
No known key found for this signature in database
GPG key ID: C36D3A8D5BEF0935

View file

@ -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 '