cli: proxmox-tape backup-job list: use status api and display next-run an d next-media-label
This commit is contained in:
parent
efe96ec039
commit
e5545c9804
@ -28,7 +28,8 @@ fn list_tape_backup_jobs(param: Value, rpcenv: &mut dyn RpcEnvironment) -> Resul
|
|||||||
|
|
||||||
let output_format = get_output_format(¶m);
|
let output_format = get_output_format(¶m);
|
||||||
|
|
||||||
let info = &api2::config::tape_backup_job::API_METHOD_LIST_TAPE_BACKUP_JOBS;
|
//let info = &api2::config::tape_backup_job::API_METHOD_LIST_TAPE_BACKUP_JOBS;
|
||||||
|
let info = &api2::tape::backup::API_METHOD_LIST_TAPE_BACKUP_JOBS;
|
||||||
let mut data = match info.handler {
|
let mut data = match info.handler {
|
||||||
ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
|
ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
@ -40,6 +41,8 @@ fn list_tape_backup_jobs(param: Value, rpcenv: &mut dyn RpcEnvironment) -> Resul
|
|||||||
.column(ColumnConfig::new("pool"))
|
.column(ColumnConfig::new("pool"))
|
||||||
.column(ColumnConfig::new("drive"))
|
.column(ColumnConfig::new("drive"))
|
||||||
.column(ColumnConfig::new("schedule"))
|
.column(ColumnConfig::new("schedule"))
|
||||||
|
.column(ColumnConfig::new("next-run").renderer(pbs_tools::format::render_epoch))
|
||||||
|
.column(ColumnConfig::new("next-media-label"))
|
||||||
.column(ColumnConfig::new("comment"));
|
.column(ColumnConfig::new("comment"));
|
||||||
|
|
||||||
format_and_print_result_full(&mut data, &info.returns, &output_format, &options);
|
format_and_print_result_full(&mut data, &info.returns, &output_format, &options);
|
||||||
|
Loading…
Reference in New Issue
Block a user