manager: versions: non-verbose should actually print server pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-12 10:28:03 +01:00
parent 5e293f1315
commit fc5a012068
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ async fn get_versions(verbose: bool, param: Value) -> Result<Value, Error> {
let output_format = get_output_format(&param); let output_format = get_output_format(&param);
let packages = crate::api2::node::apt::get_versions()?; let packages = crate::api2::node::apt::get_versions()?;
let mut packages = json!(if verbose { &packages[..] } else { &packages[0..1] }); let mut packages = json!(if verbose { &packages[..] } else { &packages[1..2] });
let options = default_table_format_options() let options = default_table_format_options()
.disable_sort() .disable_sort()