From c2e5b9384e2f2ff04ebbf3d795a40a9a5f22fdaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 24 Mar 2017 08:58:20 +0100 Subject: [PATCH] fix start on boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix the fix for #1024 Signed-off-by: Fabian Grünbichler (cherry picked from commit e7fe107f75ee1bb9877b0d6430489661d6c1beea) --- PVE/API2/Nodes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index eb1ef69b..8d828436 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -1278,7 +1278,7 @@ my $get_start_stop_list = sub { $startup->{order} = LONG_MAX if !defined($startup->{order}); $resList->{$startup->{order}}->{$vmid} = $startup; - $resList->{$startup->{order}}->{$vmid}->{type} = $conf->{type}; + $resList->{$startup->{order}}->{$vmid}->{type} = $vmlist->{$vmid}->{type}; } return $resList; @@ -1291,7 +1291,7 @@ my $remove_locks_on_startup = sub { foreach my $vmid (keys %$vmlist) { my $conf = $vmlist->{$vmid}->{conf}; - my $class = $conf->{class}; + my $class = $vmlist->{$vmid}->{class}; eval { if ($class->has_lock($conf, 'backup')) {