0
0
mirror of https://github.com/saltstack-formulas/sysctl-formula.git synced 2024-11-27 23:07:54 +01:00

fix(param.sls): fix salt-lint errors

```bash
Examining sysctl/param.sls of type state
[209] Jinja comment should have spaces before and after: {# comment #}
sysctl/param.sls:4
{## import settings from map.jinja ##}

[209] Jinja comment should have spaces before and after: {# comment #}
sysctl/param.sls:25
{## Support for legacy pillar structure ##}
```
This commit is contained in:
Imran Iqbal 2019-10-09 18:39:43 +01:00
parent a8bbd2538f
commit 50494dc46f
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: ft=sls # vim: ft=sls
{## import settings from map.jinja ##} {#- import settings from map.jinja #}
{%- from "sysctl/map.jinja" import sysctl_settings with context %} {%- from "sysctl/map.jinja" import sysctl_settings with context %}
{% if sysctl_settings.params is defined %} {% if sysctl_settings.params is defined %}
@ -22,7 +22,7 @@ sysctl-present-{{ param_name }}:
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
{## Support for legacy pillar structure ##} {#- Support for legacy pillar structure #}
{%- if sysctl_settings.lookup is defined %} {%- if sysctl_settings.lookup is defined %}
{% if sysctl_settings.lookup.params2 is defined -%} {% if sysctl_settings.lookup.params2 is defined -%}
{%- for param_name, param in sysctl_settings.lookup.get('params2', {}).items() -%} {%- for param_name, param in sysctl_settings.lookup.get('params2', {}).items() -%}