From 1b5e56f283a5ae77a7d2d5bd53744f6c3534758c Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 7 Sep 2015 10:51:40 +0200 Subject: [PATCH] Fix package path to startup and shutdown subroutines --- 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 268ae01e..1528fc6d 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -1240,7 +1240,7 @@ __PACKAGE__->register_method ({ if ($d->{type} eq 'lxc') { return if PVE::LXC::check_running($vmid); print STDERR "Starting CT $vmid\n"; - $upid = PVE::API2::LXC->vm_start({node => $nodename, vmid => $vmid }); + $upid = PVE::API2::LXC::Status->vm_start({node => $nodename, vmid => $vmid }); } elsif ($d->{type} eq 'qemu') { $default_delay = 3; # to redruce load return if PVE::QemuServer::check_running($vmid, 1); @@ -1290,7 +1290,7 @@ my $create_stop_worker = sub { return if !PVE::LXC::check_running($vmid); my $timeout = defined($down_timeout) ? int($down_timeout) : 60; print STDERR "Stopping CT $vmid (timeout = $timeout seconds)\n"; - $upid = PVE::API2::LXC->vm_shutdown({node => $nodename, vmid => $vmid, + $upid = PVE::API2::LXC::Status->vm_shutdown({node => $nodename, vmid => $vmid, timeout => $timeout, forceStop => 1 }); } elsif ($type eq 'qemu') { return if !PVE::QemuServer::check_running($vmid, 1);