From e8a268100b5c5017340048391f36167afa532b10 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 3 Nov 2021 16:21:05 +0100 Subject: [PATCH] vm_commandline: reduce line bloat Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 0c29b845..fbc0d462 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5605,9 +5605,8 @@ sub vm_commandline { my ($storecfg, $vmid, $snapname) = @_; my $conf = PVE::QemuConfig->load_config($vmid); - my $forcemachine; - my $forcecpu; + my ($forcemachine, $forcecpu); if ($snapname) { my $snapshot = $conf->{snapshots}->{$snapname}; die "snapshot '$snapname' does not exist\n" if !defined($snapshot); @@ -5623,8 +5622,7 @@ sub vm_commandline { my $defaults = load_defaults(); - my $cmd = config_to_command($storecfg, $vmid, $conf, $defaults, - $forcemachine, $forcecpu); + my $cmd = config_to_command($storecfg, $vmid, $conf, $defaults, $forcemachine, $forcecpu); return PVE::Tools::cmd2string($cmd); }