Skip to content

Commit c0780ad

Browse files
fix(windows): change id to whoami (#299)
1 parent aaedb00 commit c0780ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/osfamilymap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
1515
{%- set rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
1616
{%- elif grains.os == 'Windows' %}
17-
{%- set rootuser = salt['cmd.run']("id -un") %}
17+
{%- set rootuser = salt['cmd.run']("whoami").split("\\")[1] %}
1818
{%- endif %}
1919

2020
Arch:

0 commit comments

Comments
 (0)