]> git.proxmox.com Git - pve-common.git/commitdiff
pbs client: deprecate namespaced parameters
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 20 Jul 2022 10:59:44 +0000 (12:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Nov 2022 13:01:38 +0000 (14:01 +0100)
All existing callers for functions with namespaced parameters just
re-use the one that's passed in via the initial configuration already,
so there is no need for namespaced parameters currently.

If the need for one PBS client to handle multiple namespaces arises, a
set_namespace() function could be added, or the relevant functions
could take an additional parameter, either for just the namespace or
like $cmd_opts in restore_pxar().

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

index dfb8d76ea0ee03baedeee33c732a802962ace9cb..34d3f67e6a02b4935344033b446d34daabeba50a 100644 (file)
@@ -242,6 +242,8 @@ sub autogen_encryption_key {
     return file_get_contents($encfile);
 };
 
+# TODO remove support for namespaced parameters. Needs Breaks for pmg-api and libpve-storage-perl.
+# Deprecated! The namespace should be passed in as part of the config in new().
 # Snapshot or group parameters can be either just a string and will then default to the namespace
 # that's part of the initial configuration in new(), or a tuple of `[namespace, snapshot]`.
 my sub split_namespaced_parameter : prototype($$) {