Merge pull request #26976 from saltstack/revert-26899-fix_26730

Revert "file.symlink gets windows account instead of root"
This commit is contained in:
Mike Place 2015-09-08 16:44:19 -06:00
commit 57b1080f94

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 '