Signed-off-by: Stefan Reiter <s.rei...@proxmox.com>
---
 PVE/API2/Nodes.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 9e731e05..0f30a518 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1729,7 +1729,7 @@ __PACKAGE__->register_method ({
                        } elsif ($d->{type} eq 'qemu') {
                            $typeText = 'VM';
                            $default_delay = 3; # to reduce load
-                           return if PVE::QemuServer::check_running($vmid, 1);
+                           return if PVE::QemuConfig::check_running($vmid, 1);
                            print STDERR "Starting VM $vmid\n";
                            $upid = PVE::API2::Qemu->vm_start({node => 
$nodename, vmid => $vmid });
                        } else {
@@ -1775,7 +1775,7 @@ my $create_stop_worker = sub {
        $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);
+       return if !PVE::QemuConfig::check_running($vmid, 1);
        my $timeout =  defined($down_timeout) ? int($down_timeout) : 60*3;
        print STDERR "Stopping VM $vmid (timeout = $timeout seconds)\n";
        $upid = PVE::API2::Qemu->vm_shutdown({node => $nodename, vmid => $vmid,
@@ -1894,7 +1894,7 @@ my $create_migrate_worker = sub {
        $upid = PVE::API2::LXC->migrate_vm({node => $nodename, vmid => $vmid, 
target => $target,
                                            restart => $online });
     } elsif ($type eq 'qemu') {
-       my $online = PVE::QemuServer::check_running($vmid, 1) ? 1 : 0;
+       my $online = PVE::QemuConfig::check_running($vmid, 1) ? 1 : 0;
        print STDERR "Migrating VM $vmid\n";
        $upid = PVE::API2::Qemu->migrate_vm({node => $nodename, vmid => $vmid, 
target => $target,
                                             online => $online });
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to