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:
parent
b2c9bf16e0
commit
b81f821bf9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user