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.eb...@proxmox.com> --- src/PVE/PBSClient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm index f19199c..4b5b485 100644 --- a/src/PVE/PBSClient.pm +++ b/src/PVE/PBSClient.pm @@ -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 { -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel