Skip to content

Fix regression in get-all default output #874

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

In the original change to support json-array output, the conversion from GetOutputFormat to OutputFormat didn't correctly handle None which ended up in the anything else default to JSON format whereas None should return YAML when used interactively. The fix is to make sure None gets propagated correctly.

Also updated the Process resource, which is only used for testing, to only emit 3 instances rather than having it scroll off the terminal.

Finally, fixed a non-blocking test issue in the WinPS test that would fail on non-Windows during cleanup.

PR Context

Fix #866

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jun 9, 2025
Merged via the queue into PowerShell:main with commit 723825a Jun 9, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the get-all-regression branch June 9, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking Change get --all and export return difference
2 participants