Bug fix on platforms not MacOS
with 'set' the next statement must be setting, not equality check.
This commit is contained in:
parent
79a62c8ea6
commit
256eeb24e0
@ -1,7 +1,7 @@
|
||||
{%- if grains.os == 'MacOS' %}
|
||||
{%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
|
||||
{%- else %}
|
||||
{%- set rootuser == 'root' %}
|
||||
{%- set rootuser = 'root' %}
|
||||
{%- endif %}
|
||||
|
||||
{% set defaults = {
|
||||
|
Loading…
Reference in New Issue
Block a user