API/Scan: use scan_usb from PVE::SysFSTools

the code moved from PVE::Storage there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-11-16 16:17:55 +01:00 committed by Thomas Lamprecht
parent b2c9bf16e0
commit b81f821bf9

View File

@ -6,6 +6,7 @@ use warnings;
use PVE::SafeSyslog;
use PVE::Storage;
use PVE::Storage::LVMPlugin;
use PVE::SysFSTools;
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::SysFSTools::scan_usb();
}});
1;