8000 Add workaround for broken `pvesh` output. by reitermarkus · Pull Request #205 · proxmoxer/proxmoxer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add workaround for broken pvesh output. #205

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 2 commits into from
Apr 27, 2025

Conversation

reitermarkus
Copy link
Contributor
@reitermarkus reitermarkus commented Apr 5, 2025

Seeing as ansible-collections/community.general#4027 is still not merged after over 3 years because https://bugzilla.proxmox.com/show_bug.cgi?id=4333 still isn't fixed, I'd suggest adding this more generic workaround here rather than the very specific one in ansible-collections/community.general#4027.

Basically, pvesh can contain random output before the JSON message, so try parsing one fewer line with each try, until we reach the end of the output.

Seems like I actually suggested this 3 years ago: #117 (comment)

@reitermarkus reitermarkus force-pushed the pvesh-workaround branch 4 times, most recently from b39460c to 5f4dfa9 Compare April 5, 2025 19:20
@jhollowe jhollowe self-requested a review April 6, 2025 01:08
@jhollowe jhollowe self-assigned this Apr 6, 2025
@jhollowe
Copy link
Contributor

Please add tests for this new functionality.

@reitermarkus
Copy link
Contributor Author

@jhollowe, added a test.

@jhollowe jhollowe merged commit 7052964 into proxmoxer:develop Apr 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0