mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #90] [MERGED] Enable proper handling of QEMU exec commands #169
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#169
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/90
Author: @jhollowe
Created: 3/11/2022
Status: ✅ Merged
Merged: 3/13/2022
Merged by: @jhollowe
Base:
develop← Head:issue-89📝 Commits (6)
b59f0f3Fix error detection regex with non-string stderrf54f81eFix qemu agent exec command parsing8457328Convert tests from openvz to qemu19acdc1Add tests for command handling8c65c44Scope command handling to only qemu agent exec9c80fabFix bug with tests under Python 2.7📊 Changes
5 files changed (+78 additions, -37 deletions)
View changed files
📝
proxmoxer/backends/command_base.py(+16 -1)📝
proxmoxer/backends/https.py(+6 -5)📝
test_requirements.txt(+1 -0)📝
tests/base/base_suite.py(+43 -19)📝
tests/https_tests.py(+12 -12)📄 Description
All backends now correctly support passing commands with arguments to the Qemu guest agent to execute.
The commands can also be passed as strings or arrays.
They are ultimately exec'ed, not run in a shell, so wrapping in e.g. "bash -c 'COMMAND'" might be needed.
The alteration of the
commandargument is only applied to the.../agent/execendpoint as to not interfere with other endpoints which also have acommandargument.fixes #89
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.