From eb5d01365b4609843e75e88f329e4ac6c0a9947d Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Tue, 8 Sep 2015 10:38:31 +0200 Subject: [PATCH] Rename onboot and startup parameters to follow vm.conf synthax This fixes the problem of containers not autostarting with onboot=1 --- 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 3ccbe884..f4bda13b 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -1147,10 +1147,10 @@ my $get_start_stop_list = sub { if ($d->{type} eq 'lxc') { my $conf = PVE::LXC::load_config($vmid); - return if $autostart && !$conf->{'pve.onboot'}; + return if $autostart && !$conf->{'onboot'}; if ($conf->{'pve.startup'}) { - $startup = PVE::JSONSchema::pve_parse_startup_order($conf->{'pve.startup'}); + $startup = PVE::JSONSchema::pve_parse_startup_order($conf->{'startup'}); $startup->{order} = $bootorder if !defined($startup->{order}); } else { $startup = { order => $bootorder };