mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-29 19:11:48 +00:00
pbs client: pull variable out of long post-if definedness check
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
This commit is contained in:
parent
14926269ec
commit
bd8408bcec
@ -288,7 +288,9 @@ sub backup_fs_tree {
|
|||||||
|
|
||||||
$cmd_opts = {} if !defined($cmd_opts);
|
$cmd_opts = {} if !defined($cmd_opts);
|
||||||
|
|
||||||
$cmd_opts->{namespace} = $self->{scfg}->{namespace} if defined($self->{scfg}->{namespace});
|
if (defined(my $namespace = $self->{scfg}->{namespace})) {
|
||||||
|
$cmd_opts->{namespace} = $namespace;
|
||||||
|
}
|
||||||
|
|
||||||
return run_raw_client_cmd($self, 'backup', $param, %$cmd_opts);
|
return run_raw_client_cmd($self, 'backup', $param, %$cmd_opts);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user