diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 62281254..367d6ca5 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -187,8 +187,7 @@ my $create_disks = sub { } elsif ($ds eq 'tpmstate0') { # swtpm can only use raw volumes, and uses a fixed size $size = PVE::Tools::convert_size(PVE::QemuServer::Drive::TPMSTATE_DISK_SIZE, 'b' => 'kb'); - $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, - "raw", undef, $size); + $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, "raw", undef, $size); } else { $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, $fmt, undef, $size); } diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm index 32c73778..6389dbb2 100644 --- a/PVE/QemuServer/Drive.pm +++ b/PVE/QemuServer/Drive.pm @@ -339,8 +339,8 @@ my %tpmversion_fmt = ( version => { type => 'string', enum => [qw(v1.2 v2.0)], - description => "The TPM interface version. v2.0 is newer and should be " - . "preferred. Note that this cannot be changed later on.", + description => "The TPM interface version. v2.0 is newer and should be preferred." + ." Note that this cannot be changed later on.", optional => 1, default => 'v2.0', },