[pve-devel] [PATCH] fixed bug 662, wrong subroutine for parsing startup order

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jul 16 13:46:28 CEST 2015


Changed from old, now missing, subroutine parse_startup() to new
pve_parse_startup_order()

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

fix for the pve-manager repo

 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 164c35c..268ae01 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1149,7 +1149,7 @@ my $get_start_stop_list = sub {
 		return if $autostart && !$conf->{'pve.onboot'};
 		
 		if ($conf->{'pve.startup'}) {
-		    $startup = PVE::JSONSchema::parse_startup($conf->{'pve.startup'});
+		    $startup = PVE::JSONSchema::pve_parse_startup_order($conf->{'pve.startup'});
 		    $startup->{order} = $bootorder if !defined($startup->{order});
 		} else {
 		    $startup = { order => $bootorder };
@@ -1159,7 +1159,7 @@ my $get_start_stop_list = sub {
 		return if $autostart && !$conf->{onboot};
 
 		if ($conf->{startup}) {
-		    $startup =  PVE::JSONSchema::parse_startup($conf->{startup});
+		    $startup =  PVE::JSONSchema::pve_parse_startup_order($conf->{startup});
 		    $startup->{order} = $bootorder if !defined($startup->{order});
 		} else {
 		    $startup = { order => $bootorder };
-- 
2.1.4



More information about the pve-devel mailing list