fix start on boot

fix the fix for #1024

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit e7fe107f75ee1bb9877b0d6430489661d6c1beea)
This commit is contained in:
Fabian Grünbichler 2017-03-24 08:58:20 +01:00
parent f92f0a357a
commit c2e5b9384e

View File

@ -1278,7 +1278,7 @@ my $get_start_stop_list = sub {
$startup->{order} = LONG_MAX if !defined($startup->{order}); $startup->{order} = LONG_MAX if !defined($startup->{order});
$resList->{$startup->{order}}->{$vmid} = $startup; $resList->{$startup->{order}}->{$vmid} = $startup;
$resList->{$startup->{order}}->{$vmid}->{type} = $conf->{type}; $resList->{$startup->{order}}->{$vmid}->{type} = $vmlist->{$vmid}->{type};
} }
return $resList; return $resList;
@ -1291,7 +1291,7 @@ my $remove_locks_on_startup = sub {
foreach my $vmid (keys %$vmlist) { foreach my $vmid (keys %$vmlist) {
my $conf = $vmlist->{$vmid}->{conf}; my $conf = $vmlist->{$vmid}->{conf};
my $class = $conf->{class}; my $class = $vmlist->{$vmid}->{class};
eval { eval {
if ($class->has_lock($conf, 'backup')) { if ($class->has_lock($conf, 'backup')) {