]> git.proxmox.com Git - qemu-server.git/commit
machine: get current: return early from loop if possible
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 10 Nov 2023 13:24:48 +0000 (14:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 12 Nov 2023 17:48:01 +0000 (18:48 +0100)
commitbe690b7a91898eb34987477d6c65330c2499c9a9
tree8365a216d699781938fe5b9bc087a9b9d9b397f9
parent7d6a6292695d479c11f485a21a313c816ca09c00
machine: get current: return early from loop if possible

No point iterating through the rest if we already got the current
machine.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer/Machine.pm