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:
committed by
Dietmar Maurer
parent
d8792b88ef
commit
5fdaecf6f4
@ -79,7 +79,7 @@ fn list_drives(
|
||||
) -> Result<(), Error> {
|
||||
|
||||
let output_format = get_output_format(¶m);
|
||||
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!(),
|
||||
|
Reference in New Issue
Block a user