[pve-devel] [PATCH qemu-server 05/14] qmp helpers: allow passing structured args via qemu_objectadd()
Christoph Heiss
c.heiss at proxmox.com
Mon Mar 17 15:11:42 CET 2025
No functional changes for existing code.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
PVE/QemuServer/QMPHelpers.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer/QMPHelpers.pm b/PVE/QemuServer/QMPHelpers.pm
index 5f73b01e..c6a8f166 100644
--- a/PVE/QemuServer/QMPHelpers.pm
+++ b/PVE/QemuServer/QMPHelpers.pm
@@ -36,9 +36,9 @@ sub qemu_devicedel {
}
sub qemu_objectadd {
- my ($vmid, $objectid, $qomtype) = @_;
+ my ($vmid, $objectid, $qomtype, %args) = @_;
- mon_cmd($vmid, "object-add", id => $objectid, "qom-type" => $qomtype);
+ mon_cmd($vmid, "object-add", id => $objectid, "qom-type" => $qomtype, %args);
return 1;
}
--
2.48.1
More information about the pve-devel
mailing list