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

psrp - fix test_command rc for win_reboot #55354

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

jborean93
Copy link
Contributor

SUMMARY

When using test_command with win_reboot over psrp, the return value was not always returned back to Ansible due to the various escaping. This caused issues as rc of 0 will have win_reboot continue when it shouldn't.

This change also unifies another command input to use a PowerShell context like raw and other command inputs. It finally simplifies the access denied errors by removing the remote shutdown privilege instead of trying to create a temp standard user and allow standard users to connect over WinRM.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_reboot

@ansibot
Copy link
Contributor

ansibot commented Apr 16, 2019

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community labels Apr 16, 2019
@nitzmahone nitzmahone removed the needs_triage Needs a first human triage before being processed. label Apr 16, 2019
@jborean93 jborean93 merged commit 49655a4 into ansible:devel Apr 16, 2019
@jborean93 jborean93 deleted the test-win_reboot-psrp branch April 16, 2019 22:38
jborean93 added a commit to jborean93/ansible that referenced this pull request Apr 16, 2019
jborean93 added a commit to jborean93/ansible that referenced this pull request Apr 16, 2019
@jborean93
Copy link
Contributor Author

Backport PRs
stable-2.7 #55413
stable-2.8 #55414

abadger pushed a commit that referenced this pull request Apr 16, 2019
abadger pushed a commit that referenced this pull request Apr 16, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants