Revert "file.symlink gets windows account instead of root"

This commit is contained in:
Thomas S Hatch 2015-09-08 16:43:26 -06:00
parent 67be01f5fe
commit 6dd54e6bec

View file

@ -835,14 +835,6 @@ def symlink(
user = __opts__['user']
if salt.utils.is_windows():
# Make sure the user exists in Windows
# Salt default is 'root'
if not __salt__['user.info'](user):
# User not found, use the account salt is running under
# If username not found, use System
user = os.getenv('username', 'System')
if group is not None:
log.warning(
'The group argument for {0} has been ignored as this '