From dc5600d19e0f4f88f417c245048e461be0349a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Paw=C5=82owski?= Date: Thu, 20 Aug 2015 09:17:55 +0200 Subject: [PATCH] ng.install: follow style recommendation --- nginx/ng/install.sls | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nginx/ng/install.sls b/nginx/ng/install.sls index 01c164d..c2d1ae3 100644 --- a/nginx/ng/install.sls +++ b/nginx/ng/install.sls @@ -51,12 +51,11 @@ nginx_zypp_repo: {% if salt['grains.get']('os_family') == 'RedHat' %} nginx_yum_repo: - pkgrepo: - {%- if nginx.install_from_repo %} - - managed - {%- else %} - - absent - {%- endif %} + {%- if nginx.install_from_repo %} + pkgrepo.managed: + {%- else %} + pkgrepo.absent: + {%- endif %} - name: nginx - humanname: nginx repo {%- if salt['grains.get']('os') == 'CentOS' %}