mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26976 from saltstack/revert-26899-fix_26730
Revert "file.symlink gets windows account instead of root"
This commit is contained in:
commit
57b1080f94
1 changed files with 0 additions and 8 deletions
|
@ -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 '
|
||||
|
|
Loading…
Add table
Reference in a new issue