Skip to content

Commit

Permalink
fix(map.jinja): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining sysctl/map.jinja of type state
[209] Jinja comment should have spaces before and after: {# comment #}
sysctl/map.jinja:4
{## Start with  defaults from defaults.sls and osfamilymap.yml ##}

[209] Jinja comment should have spaces before and after: {# comment #}
sysctl/map.jinja:21
{## Apply backwards compatiblility after merge ##}

[209] Jinja comment should have spaces before and after: {# comment #}
sysctl/map.jinja:29
{## Merge in sysctl pillar ##}
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent 3f93bec commit 6a08317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysctl/map.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# vim: ft=jinja

{## Start with defaults from defaults.sls and osfamilymap.yml ##}
{#- Start with defaults from defaults.sls and osfamilymap.yml #}
{% import_yaml 'sysctl/defaults.yml' as default_settings %}
{% import_yaml "sysctl/osfamilymap.yml" as os_family_map %}

Expand All @@ -18,15 +18,15 @@
)
%}

{## Apply backwards compatiblility after merge ##}
{#- Apply backwards compatiblility after merge #}
{% if default_settings['sysctl']['params'] is defined %}
{% do default_settings['sysctl'].pop('params') %}
{% endif %}
{% if default_settings['sysctl']['params2'] is defined %}
{% do default_settings['sysctl'].pop('params2') %}
{% endif %}

{## Merge in sysctl pillar ##}
{#- Merge in sysctl pillar #}
{% set sysctl_settings = salt['pillar.get'](
'sysctl',
default=default_settings['sysctl'],
Expand Down

0 comments on commit 6a08317

Please sign in to comment.