Skip to content

Commit

Permalink
Merge pull request #55434 from terminalmage/fix-slspath
Browse files Browse the repository at this point in the history
Don't remove one directory level from slspath (master branch)
  • Loading branch information
dwoz authored Jan 5, 2020
2 parents e8b4f4d + aca3f33 commit 5a17dd6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions salt/utils/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ def render_tmpl(tmplsrc,
slspath = context['sls'].replace('.', '/')
if tmplpath is not None:
context['tplpath'] = tmplpath
if not tmplpath.lower().replace('\\', '/').endswith('/init.sls'):
slspath = os.path.dirname(slspath)
template = tmplpath.replace('\\', '/')
i = template.rfind(slspath.replace('.', '/'))
if i != -1:
Expand Down

0 comments on commit 5a17dd6

Please sign in to comment.