From 4fdc1d3dfc8c11039c1ba001480fdba2b5a6ecec Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 Apr 2019 13:33:32 +0000 Subject: [PATCH] create ci disk: long line cleanup Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index d3f37bb0..184f32a6 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -158,10 +158,9 @@ my $create_disks = sub { $fmt = $disk->{format} // "raw"; } - # Initial disk created with 4MB, every time it is regenerated the disk is aligned to 4MB again. - my $cloudinit_iso_size = 4; # in MB - my $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, - $fmt, $name, $cloudinit_iso_size*1024); + # Initial disk created with 4 MB and aligned to 4MB on regeneration + my $ci_size = 4 * 1024; + my $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, $fmt, $name, $ci_size); $disk->{file} = $volid; $disk->{media} = 'cdrom'; push @$vollist, $volid; -- 2.39.5