mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
use consistend data returns
This commit is contained in:
parent
86d85896b1
commit
f91756934a
@ -86,7 +86,7 @@ def jinja(sfn, string=False, **kwargs):
|
||||
data = template.render(**passthrough)
|
||||
if string:
|
||||
return {'result': True,
|
||||
'string': data}
|
||||
'data': data}
|
||||
with open(tgt, 'w+') as target:
|
||||
target.write(data)
|
||||
if newline:
|
||||
|
Loading…
Reference in New Issue
Block a user