mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #205] [MERGED] Add workaround for broken pvesh output. #209
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#209
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/proxmoxer/proxmoxer/pull/205
Author: @reitermarkus
Created: 4/5/2025
Status: ✅ Merged
Merged: 4/27/2025
Merged by: @jhollowe
Base:
develop← Head:pvesh-workaround📝 Commits (2)
c16375aAdd workaround for brokenpveshoutput.90d091cAdd test forpveshJSON preceded by non-JSON.📊 Changes
2 files changed (+30 additions, -3 deletions)
View changed files
📝
proxmoxer/backends/command_base.py(+17 -3)📝
tests/test_command_base.py(+13 -0)📄 Description
Seeing as https://github.com/ansible-collections/community.general/pull/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 https://github.com/ansible-collections/community.general/pull/4027.
Basically,
pveshcan 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: https://github.com/proxmoxer/proxmoxer/issues/117#issuecomment-1329343479
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.