From 520566200ad39d5c110063fc14803866e05c2637 Mon Sep 17 00:00:00 2001 From: Philipp Hufnagl Date: Mon, 16 Oct 2023 13:40:15 +0200 Subject: [PATCH] fix #4971: client: Improve output on successful snapshot deletion When a snapshot gets deleted (forgotten), the proxmox backup client currently returns returns "Result: { "data": null }" This feedback may confuse users therefore this patch removes the output. Signed-off-by: Philipp Hufnagl --- proxmox-backup-client/src/snapshot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-backup-client/src/snapshot.rs b/proxmox-backup-client/src/snapshot.rs index 4ca8015f..fcfe5840 100644 --- a/proxmox-backup-client/src/snapshot.rs +++ b/proxmox-backup-client/src/snapshot.rs @@ -188,13 +188,13 @@ async fn forget_snapshots(param: Value) -> Result { let path = format!("api2/json/admin/datastore/{}/snapshots", repo.store()); - let result = client + client .delete(&path, Some(snapshot_args(&backup_ns, &snapshot)?)) .await?; record_repository(&repo); - Ok(result) + Ok(Value::Null) } #[api( -- 2.39.5