Commit b306dc4e authored by Francesco Gionghi's avatar Francesco Gionghi
Browse files

fix check pillar exist

parent 63ffc720
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{% if pillar.fbkusers is defined %} {% if pillar.fbkusers is defined %}
{% for user in pillar.fbkusers %} {% for user in pillar.fbkusers %}
{% if pillar.fbkusers[user]["sudocmd"] %} {% if pillar.fbkusers[user]["sudocmd"] is defined %}
/etc/sudoers.d/{{ user }}-cmd: /etc/sudoers.d/{{ user }}-cmd:
file.managed: file.managed:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment