[pve-devel] [PATCH pve-manager] Fix package path to startup and shutdown subroutines

Emmanuel Kasper e.kasper at proxmox.com
Mon Sep 7 10:51:40 CEST 2015


---
 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 268ae01..1528fc6 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);
-- 
2.1.4





More information about the pve-devel mailing list