[pve-devel] [PATCH manager 04/11] use scan_usb from qemu-server rather than pve-storage
Dominik Csapak
d.csapak at proxmox.com
Thu Nov 15 15:30:50 CET 2018
the code moved there
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Scan.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Scan.pm b/PVE/API2/Scan.pm
index f0ae10c3..8d98cb27 100644
--- a/PVE/API2/Scan.pm
+++ b/PVE/API2/Scan.pm
@@ -6,6 +6,7 @@ use warnings;
use PVE::SafeSyslog;
use PVE::Storage;
use PVE::Storage::LVMPlugin;
+use PVE::QemuServer::USB;
use PVE::JSONSchema qw(get_standard_option);
use PVE::RESTHandler;
@@ -418,7 +419,7 @@ __PACKAGE__->register_method ({
code => sub {
my ($param) = @_;
- return PVE::Storage::scan_usb();
+ return PVE::QemuServer::USB::scan_usb();
}});
1;
--
2.11.0
More information about the pve-devel
mailing list