mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-28 20:45:39 +00:00
followup: reorder error so that $volid is last (potential long)
and add "current" as keyword, further remove the parenthesis for the post-if, to adapt to Proxmox general perl code style Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f8b829aaba
commit
ed94b2adaa
@ -3579,7 +3579,7 @@ __PACKAGE__->register_method({
|
||||
PVE::Storage::activate_volumes($storecfg, [$volid]);
|
||||
my $size = PVE::Storage::volume_size_info($storecfg, $volid, 5);
|
||||
|
||||
die "Size of volume $volid couldn't be determined\n" if (!defined($size));
|
||||
die "Could not determine current size of volume '$volid'\n" if !defined($size);
|
||||
|
||||
die "internal error" if $sizestr !~ m/^(\+)?(\d+(\.\d+)?)([KMGT])?$/;
|
||||
my ($ext, $newsize, $unit) = ($1, $2, $4);
|
||||
|
Loading…
Reference in New Issue
Block a user