[pve-devel] [PATCH manager 5/7] api: register Qemu::Machine call
Stefan Reiter
s.reiter at proxmox.com
Thu Mar 4 13:52:07 CET 2021
as 'machine-types', so it is clear this refers to QEMU machines, not the
local machine (as one might think, this being a 'node' API call).
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
Requires dependency bump on updated qemu-server.
PVE/API2/Nodes.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 8172231e..7a39320a 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -35,6 +35,7 @@ use PVE::API2::Storage::Scan;
use PVE::API2::Storage::Status;
use PVE::API2::Qemu;
use PVE::API2::Qemu::CPU;
+use PVE::API2::Qemu::Machine;
use PVE::API2::LXC;
use PVE::API2::LXC::Status;
use PVE::API2::VZDump;
@@ -71,6 +72,11 @@ __PACKAGE__->register_method ({
path => 'cpu',
});
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Qemu::Machine",
+ path => 'machine-types',
+});
+
__PACKAGE__->register_method ({
subclass => "PVE::API2::LXC",
path => 'lxc',
--
2.20.1
More information about the pve-devel
mailing list