From c152600b939324155324fef66726a05020e00c75 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 Apr 2019 13:27:16 +0000 Subject: [PATCH] followup: keep raw as default for non-path based stores Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index be255101..d3f37bb0 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -152,10 +152,10 @@ my $create_disks = sub { my $fmt = undef; if ($scfg->{path}) { - $fmt = $disk->{format} ? $disk->{format} : "qcow2"; + $fmt = $disk->{format} // "qcow2"; $name .= ".$fmt"; } else { - $fmt = $disk->{format}; + $fmt = $disk->{format} // "raw"; } # Initial disk created with 4MB, every time it is regenerated the disk is aligned to 4MB again.