tape: move scan_drives API code to correct file

This commit is contained in:
Dietmar Maurer
2021-01-30 08:03:17 +01:00
parent b8d526f18d
commit 9586ce2f46
3 changed files with 26 additions and 24 deletions

View File

@ -116,7 +116,7 @@ fn scan_for_drives(
) -> Result<(), Error> {
let output_format = get_output_format(&param);
let info = &api2::tape::drive::API_METHOD_SCAN_DRIVES;
let info = &api2::tape::API_METHOD_SCAN_DRIVES;
let mut data = match info.handler {
ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
_ => unreachable!(),