]> git.proxmox.com Git - pve-common.git/commit - src/PVE/PBSClient.pm
pbs client: default to configured namespace for non-namespaced parameters
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 20 Jul 2022 10:59:43 +0000 (12:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Nov 2022 13:01:34 +0000 (14:01 +0100)
commit139dc881ede2e23f1068b5571254bac120be0591
tree1c60042464a3eebafe1d28377312e0956722c309
parente1fa96e1972f0a041ff1389cb413861d609e10da
pbs client: default to configured namespace for non-namespaced parameters

For get_snapshots(), also set the default when no namespaced parameter
is present at all.

This would break any callers that have a namespace in the initial
config and explicitly don't set it for a later call, but the only
such caller is restore_pxar() in PMG, which /should/ be using the
namespace!

In other words, this implicitly fixes the restore_pxar() call in PMG
and avoids the need to extract the namespace from the configuration
(which already is present in the client) on the call site for all
functions that currently take a namespaced parameter.

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