Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
mirror
Logrotate Formula
Commits
f99e3b71
Unverified
Commit
f99e3b71
authored
Apr 11, 2019
by
Nicolas Rodriguez
Committed by
GitHub
Apr 11, 2019
Browse files
Merge pull request #43 from daks/context-fix
fix: corrected indentation on context in file.managed states
parents
ff2d7c79
ef88f3d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
logrotate/jobs.sls
View file @
f99e3b71
...
...
@@ -22,11 +22,11 @@ logrotate-{{ key }}:
- template: jinja
- context:
{% if value is mapping %}
path: {{ value.get('path', [key]) | json }}
data: {{ value.get('config', []) | json }}
path: {{ value.get('path', [key]) | json }}
data: {{ value.get('config', []) | json }}
{% else %}
path: [ {{ key | json }} ]
data: {{ value | json }}
path: [ {{ key | json }} ]
data: {{ value | json }}
{% endif %}
{% endif %}
{%- endfor -%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment