5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-09 05:17:35 +03:00

pbs client: rename 'sdir' parameter of constructor to 'secret_dir'

.. so that it's less ambiguous for what the parameter stands for at a
glance.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
This commit is contained in:
Max Carrara 2024-08-02 15:26:39 +02:00 committed by Thomas Lamprecht
parent 176d4bcb63
commit da7799af9a

View File

@ -42,12 +42,12 @@ sub get_repository {
}
sub new {
my ($class, $scfg, $storeid, $sdir) = @_;
my ($class, $scfg, $storeid, $secret_dir) = @_;
die "no section config provided\n" if ref($scfg) eq '';
die "undefined store id\n" if !defined($storeid);
my $secret_dir = $sdir // '/etc/pve/priv/storage';
$secret_dir = '/etc/pve/priv/storage' if !defined($secret_dir);
my $self = bless {
scfg => $scfg,