Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user.present for Windows #52786

Merged
merged 3 commits into from
May 1, 2019
Merged

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented May 1, 2019

What does this PR do?

Fixes an issue when setting one of the following on an existing account:

  • homedrive
  • profile
  • logonscript
  • description

What issues does this PR fix or reference?

Slack

Previous Behavior

If setting one of the above on when the account already exists on the machine you would get a stacktrace:

KeyError: 'user.chlogonscript'

New Behavior

Now it completes successfully

Tests written?

Yes

Commits signed with GPG?

Yes

@twangboy twangboy added v2018.3.4 unsupported version v2019.2.2 unsupported version labels May 1, 2019
@twangboy twangboy requested a review from a team May 1, 2019 22:08
@dwoz dwoz merged commit 52e26b2 into saltstack:2018.3 May 1, 2019
@twangboy twangboy deleted the fix_win_useradd branch May 17, 2019 19:05
garethgreenaway added a commit to garethgreenaway/salt that referenced this pull request Sep 19, 2019
dwoz added a commit that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2018.3.4 unsupported version v2019.2.2 unsupported version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants