[pve-devel] [PATCH manager v3 1/5] add disk api entry point

Dominik Csapak d.csapak at proxmox.com
Tue Sep 6 16:59:39 CEST 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Nodes.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 3cb105a..1b9b971 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -42,6 +42,7 @@ use PVE::API2::Ceph;
 use PVE::API2::Firewall::Host;
 use Digest::MD5;
 use Digest::SHA;
+use PVE::API2::Disks;
 use JSON;
 
 use base qw(PVE::RESTHandler);
@@ -97,6 +98,11 @@ __PACKAGE__->register_method ({
 });
 
 __PACKAGE__->register_method ({
+   subclass => "PVE::API2::Disks",
+   path => 'disks',
+});
+
+__PACKAGE__->register_method ({
     subclass => "PVE::API2::APT",  
     path => 'apt',
 });
@@ -131,6 +137,7 @@ __PACKAGE__->register_method ({
     
 	my $result = [
 	    { name => 'ceph' },
+	    { name => 'disks' },
 	    { name => 'apt' },
 	    { name => 'version' },
 	    { name => 'syslog' },
-- 
2.1.4





More information about the pve-devel mailing list