Bug fix on platforms not MacOS

with 'set' the next statement must be setting, not equality check.
This commit is contained in:
Stephane Poss 2020-08-10 12:28:11 +02:00 committed by GitHub
parent 79a62c8ea6
commit 256eeb24e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {