fixed bug 662, wrong subroutine for parsing startup order

Changed from old, now missing, subroutine parse_startup() to new
pve_parse_startup_order() in qemu-server and pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2015-07-16 13:46:27 +02:00 committed by Dietmar Maurer
parent f1f7ea886a
commit 38f7f26c44

View File

@ -4404,7 +4404,7 @@ sub vm_stop {
$conf = load_config($vmid); $conf = load_config($vmid);
check_lock($conf) if !$skiplock; check_lock($conf) if !$skiplock;
if (!defined($timeout) && $shutdown && $conf->{startup}) { if (!defined($timeout) && $shutdown && $conf->{startup}) {
my $opts = parse_startup($conf->{startup}); my $opts = PVE::JSONSchema::pve_parse_startup_order($conf->{startup});
$timeout = $opts->{down} if $opts->{down}; $timeout = $opts->{down} if $opts->{down};
} }
} }