mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-05 03:40:47 +00:00
api: create: small, slightly opinionated style fix for ternary
makes it easier to spot and read to me.
This commit is contained in:
parent
78f7050482
commit
dabf4600ba
@ -174,9 +174,9 @@ my $check_storage_access = sub {
|
|||||||
if $vtype ne 'images' && $vtype ne 'import';
|
if $vtype ne 'images' && $vtype ne 'import';
|
||||||
|
|
||||||
if (PVE::QemuServer::Helpers::needs_extraction($vtype, $fmt)) {
|
if (PVE::QemuServer::Helpers::needs_extraction($vtype, $fmt)) {
|
||||||
my $extraction_scfg = defined($extraction_storage) ?
|
my $extraction_scfg = defined($extraction_storage)
|
||||||
PVE::Storage::storage_config($storecfg, $extraction_storage) :
|
? PVE::Storage::storage_config($storecfg, $extraction_storage)
|
||||||
$scfg;
|
: $scfg;
|
||||||
my $extraction_param = defined($extraction_storage) ? 'import-working-storage' : $ds;
|
my $extraction_param = defined($extraction_storage) ? 'import-working-storage' : $ds;
|
||||||
|
|
||||||
if (!$extraction_scfg->{content}->{images} || !$extraction_scfg->{path}) {
|
if (!$extraction_scfg->{content}->{images} || !$extraction_scfg->{path}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user