Fix put_file to work on Windows servers with JEA enabled #71419
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
This PR changes
put_file
method in PSRP in order to add support for JEA feature in Windows.Mainly looking for feedback as this changes radically how a file is transferred, and in my tests may lead to slower transfer speeds.
Potentially fixes #59795
ISSUE TYPE
COMPONENT NAME
psrp
ADDITIONAL INFORMATION
jea-admin
(auto-generated name by vagrant box for development of ansible modules for Windows)Ansible
.\MyJEAEndpoint.pssc
:Before fix:
After fix:
As stated in summary, while this fixes the problem, I'm not 100% sure it is the most correct way, hence why opening this as Draft and the issue can be fixed temporarily by creating
connection_plugins\psrp.py
which includes this fix in folder from where theansible-playbook
command is executed