[pve-devel] [PATCH qemu-server 04/19] helpers: improve name for variable for mapping arch to binary

Fiona Ebner f.ebner at proxmox.com
Fri Jan 3 16:57:47 CET 2025


Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 PVE/QemuServer/Helpers.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer/Helpers.pm b/PVE/QemuServer/Helpers.pm
index d58bad2b..be10a92a 100644
--- a/PVE/QemuServer/Helpers.pm
+++ b/PVE/QemuServer/Helpers.pm
@@ -19,7 +19,7 @@ windows_version
 
 my $nodename = PVE::INotify::nodename();
 
-my $Arch2Qemu = {
+my $arch_to_qemu_binary = {
     aarch64 => '/usr/bin/qemu-system-aarch64',
     x86_64 => '/usr/bin/qemu-system-x86_64',
 };
@@ -27,7 +27,7 @@ sub get_command_for_arch($) {
     my ($arch) = @_;
     return '/usr/bin/kvm' if get_host_arch() eq $arch; # i.e. native arch
 
-    my $cmd = $Arch2Qemu->{$arch}
+    my $cmd = $arch_to_qemu_binary->{$arch}
 	or die "don't know how to emulate architecture '$arch'\n";
     return $cmd;
 }
-- 
2.39.5





More information about the pve-devel mailing list