mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
save
This commit is contained in:
parent
53fed2cc63
commit
091c40df21
@ -64,6 +64,9 @@ def wrap_tmpl_func(render_str):
|
||||
context['tplpath'] = tmplpath
|
||||
if not tmplpath.lower().replace('\\', '/').endswith('/init.sls'):
|
||||
slspath = os.path.dirname(slspath)
|
||||
context['slspathdot'] = slspath.replace('/', '.')
|
||||
if slspath:
|
||||
slspath = slspath + '/'
|
||||
context['slspath'] = slspath
|
||||
|
||||
if isinstance(tmplsrc, string_types):
|
||||
|
@ -277,7 +277,7 @@ formula/woot.sls:
|
||||
''', sls='formula.woot', argline='yaml . jinja')
|
||||
|
||||
r = result['formula/woot.sls']['cmd.run'][0]['name']
|
||||
self.assertEqual(r, 'echo formula/woot')
|
||||
self.assertEqual(r, 'echo formula/woot/')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user