Skip to content

Commit d7b9682

Browse files
committed
fix(map.jinja): fix salt-lint errors
```bash Examining influxdb/map.jinja of type state [209] Jinja comment should have spaces before and after: {# comment #} influxdb/map.jinja:4 {## [209] Jinja comment should have spaces before and after: {# comment #} influxdb/map.jinja:18 {## [209] Jinja comment should have spaces before and after: {# comment #} influxdb/map.jinja:34 {## Merge the os_family_map into default settings ##} ```
1 parent 0256d3c commit d7b9682

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

influxdb/map.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% import_yaml "influxdb/defaults.yaml" as defaults %}
22
{% import_yaml "influxdb/config_defaults.yaml" as config_defaults %}
33

4-
{##
4+
{#-
55
Setup variable using grains['os_family'] based logic, only add key:values here
66
that differ from whats in defaults.yaml
7-
##}
7+
#}
88

99
{% set os_family_map = salt['grains.filter_by']({
1010
'Debian': {},
@@ -15,23 +15,23 @@ that differ from whats in defaults.yaml
1515
merge=salt['pillar.get']('influxdb:lookup'))
1616
%}
1717

18-
{##
18+
{#-
1919
Use configuration defaults appropriate for the version of InfluxDB that is being
2020
installed unless the user explicitly requested to not use any default values in
2121
which case normal pillar merging behaviour will be used.
2222
2323
The formula supports different configuration file formats for each MAJOR.MINOR
2424
version of InfluxDB and will provide the configuration that ships with the
2525
latest release off that branch.
26-
##}
26+
#}
2727

2828
{% if not salt['pillar.get']('influxdb:no_conf_defaults', False) %}
2929
{% set influxdb_version = salt['pillar.get']('influxdb:version') %}
3030
{% set major, minor = influxdb_version.split('.')[:2] %}
3131
{% do defaults.influxdb.conf.update(config_defaults.get(major).get(minor)) %}
3232
{% endif %}
3333

34-
{## Merge the os_family_map into default settings ##}
34+
{#- Merge the os_family_map into default settings #}
3535
{% do defaults.influxdb.update(os_family_map) %}
3636

3737
{# Update settings defaults from pillar data #}

0 commit comments

Comments
 (0)