[pve-devel] [PATCH manager 3/3] fix start on boot

Philip Abernethy p.abernethy at proxmox.com
Tue Sep 5 17:54:26 CEST 2017


From: Fabian Grünbichler <f.gruenbichler at proxmox.com>

fix the fix for #1024

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 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')) {
-- 
2.11.0





More information about the pve-devel mailing list