From 50494dc46f95c87811bb0ed8bb1b482f2ca4ac10 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 9 Oct 2019 18:39:43 +0100 Subject: [PATCH] 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 ##} ``` --- sysctl/param.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysctl/param.sls b/sysctl/param.sls index 65f5abf..1e46e41 100644 --- a/sysctl/param.sls +++ b/sysctl/param.sls @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # vim: ft=sls -{## import settings from map.jinja ##} +{#- import settings from map.jinja #} {%- from "sysctl/map.jinja" import sysctl_settings with context %} {% if sysctl_settings.params is defined %} @@ -22,7 +22,7 @@ sysctl-present-{{ param_name }}: {% endif %} {% endfor %} {% else %} -{## Support for legacy pillar structure ##} +{#- Support for legacy pillar structure #} {%- if sysctl_settings.lookup is defined %} {% if sysctl_settings.lookup.params2 is defined -%} {%- for param_name, param in sysctl_settings.lookup.get('params2', {}).items() -%}