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

powershell - ouput as json #3574

Merged
merged 4 commits into from
Jan 2, 2025
Merged

Conversation

SRIKKANTH
Copy link
Collaborator

@SRIKKANTH SRIKKANTH commented Dec 31, 2024

This patch enables the run_cmdlet method in lisa/tools/powershell.py to output the result as JSON when the output_json parameter is set to True.

Getting Powershell output as JSON is beneficial because it allows for easier parsing and processing of the output data.

This patch enables the run_cmdlet method in lisa/tools/powershell.py to output the result as JSON when the output_json parameter is set to True.

Getting Powershell output as JSON is beneficial because it allows for easier parsing and processing of the output data.
@SRIKKANTH SRIKKANTH force-pushed the smyakam/powershell_json_output_31_12_20024 branch from e3c3a68 to 9fe17ee Compare December 31, 2024 08:14
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@LiliDeng
Copy link
Collaborator

LiliDeng commented Jan 1, 2025

@SRIKKANTH please fix the CI check error.

@SRIKKANTH
Copy link
Collaborator Author

@SRIKKANTH please fix the CI check error.

All issues are fixed. @LiliDeng

@LiliDeng LiliDeng merged commit d225696 into main Jan 2, 2025
45 checks passed
@LiliDeng LiliDeng deleted the smyakam/powershell_json_output_31_12_20024 branch January 2, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants