[pve-devel] [PATCH manager 05/11] rename PVE::API2::Storage::Scan to PVE::API2:Scan

Dominik Csapak d.csapak at proxmox.com
Thu Nov 15 15:30:51 CET 2018


and use it in the API

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Makefile | 1 +
 PVE/API2/Nodes.pm | 4 ++--
 PVE/API2/Scan.pm  | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Makefile b/PVE/API2/Makefile
index 9862e498..75b022dd 100644
--- a/PVE/API2/Makefile
+++ b/PVE/API2/Makefile
@@ -18,6 +18,7 @@ PERLSOURCE = 			\
 	ACME.pm			\
 	ACMEAccount.pm		\
 	NodeConfig.pm		\
+	Scan.pm			\
 	Services.pm
 
 all:
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 49502830..90a56c61 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -31,7 +31,7 @@ use PVE::API2::Subscription;
 use PVE::API2::Services;
 use PVE::API2::Network;
 use PVE::API2::Tasks;
-use PVE::API2::Storage::Scan;
+use PVE::API2::Scan;
 use PVE::API2::Storage::Status;
 use PVE::API2::Qemu;
 use PVE::API2::LXC;
@@ -91,7 +91,7 @@ __PACKAGE__->register_method ({
 });
 
 __PACKAGE__->register_method ({
-    subclass => "PVE::API2::Storage::Scan",  
+    subclass => "PVE::API2::Scan",
     path => 'scan',
 });
 
diff --git a/PVE/API2/Scan.pm b/PVE/API2/Scan.pm
index 8d98cb27..6cfb74e3 100644
--- a/PVE/API2/Scan.pm
+++ b/PVE/API2/Scan.pm
@@ -1,4 +1,4 @@
-package PVE::API2::Storage::Scan;
+package PVE::API2::Scan;
 
 use strict;
 use warnings;
-- 
2.11.0





More information about the pve-devel mailing list