X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FQemuServer%2FMachine.pm;h=c9fc9a3d66cbddc8df5c500fa08375259691264b;hb=be690b7a91898eb34987477d6c65330c2499c9a9;hp=85cfb89cc8168e3a8388c73756f11c3fc0916cfd;hpb=7d6a6292695d479c11f485a21a313c816ca09c00;p=qemu-server.git diff --git a/PVE/QemuServer/Machine.pm b/PVE/QemuServer/Machine.pm index 85cfb89..c9fc9a3 100644 --- a/PVE/QemuServer/Machine.pm +++ b/PVE/QemuServer/Machine.pm @@ -29,11 +29,12 @@ sub current_from_query_machines { $current = $machine->{name}; # pve-version only exists for the current machine $current .= "+$machine->{'pve-version'}" if $machine->{'pve-version'}; + return $current; } } # fallback to the default machine if current is not supported by qemu - return $current || $default || 'pc'; + return $default || 'pc'; } # this only works if VM is running