]> git.proxmox.com Git - pve-common.git/commitdiff
pbs client: forget snapshot: suppress output
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 20 Jul 2022 10:59:42 +0000 (12:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Nov 2022 13:01:25 +0000 (14:01 +0100)
Otherwise, there will be
Result: {
      "data": null
}
when calling via a CLI tool for example. This also makes it consistent
with PVE in preparation to switch to using PBSClient there.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/PBSClient.pm

index f19199ca6673799540e172e950f4cf89094880d8..4b5b485255e7a0836f19017606b456d0decf11ca 100644 (file)
@@ -318,7 +318,7 @@ sub forget_snapshot {
 
     (my $namespace, $snapshot) = split_namespaced_parameter($snapshot);
 
-    return run_raw_client_cmd($self, 'forget', ["$snapshot"], namespace => $namespace);
+    return run_client_cmd($self, 'forget', ["$snapshot"], 1, undef, $namespace)
 };
 
 sub prune_group {