mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-29 03:05:24 +00: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:
parent
176d4bcb63
commit
da7799af9a
@ -42,12 +42,12 @@ sub get_repository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, $scfg, $storeid, $sdir) = @_;
|
my ($class, $scfg, $storeid, $secret_dir) = @_;
|
||||||
|
|
||||||
die "no section config provided\n" if ref($scfg) eq '';
|
die "no section config provided\n" if ref($scfg) eq '';
|
||||||
die "undefined store id\n" if !defined($storeid);
|
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 {
|
my $self = bless {
|
||||||
scfg => $scfg,
|
scfg => $scfg,
|
||||||
|
Loading…
Reference in New Issue
Block a user