api2/tape/drive: reorganize drive api

similar to the changers, create a listing at /tape/drive and put
the specific api calls below that

move the scan api call up one level

remove the status info from the config listing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-01-27 11:33:49 +01:00
committed by Dietmar Maurer
parent d8792b88ef
commit 5fdaecf6f4
4 changed files with 63 additions and 34 deletions

View File

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