]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer/Drive.pm
tree wide cleanups
[qemu-server.git] / PVE / QemuServer / Drive.pm
index 53c955894631e5e2b15f382a919c4db701c68ffd..d5609375354769dc2033060e5eb2da35c1a73ff5 100644 (file)
@@ -504,8 +504,8 @@ sub print_drive {
 sub get_bootdisks {
     my ($conf) = @_;
 
-    my $bootcfg = PVE::JSONSchema::parse_property_string('pve-qm-boot', $conf->{boot})
-       if $conf->{boot};
+    my $bootcfg;
+    $bootcfg = PVE::JSONSchema::parse_property_string('pve-qm-boot', $conf->{boot}) if $conf->{boot};
 
     if (!defined($bootcfg) || $bootcfg->{legacy}) {
        return [$conf->{bootdisk}] if $conf->{bootdisk};