]> git.proxmox.com Git - qemu-server.git/commitdiff
we can only resume a VM which is running
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 28 Nov 2011 12:28:18 +0000 (13:28 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Nov 2011 05:24:55 +0000 (06:24 +0100)
PVE/API2/Qemu.pm

index 8baa3062b3bbc5745c9ff07d8feac67f0f0c222a..9ce84d246b9661201c44609a3944cf27dbaea8f3 100644 (file)
@@ -1108,7 +1108,7 @@ __PACKAGE__->register_method({
        raise_param_exc({ skiplock => "Only root may use this option." }) 
            if $skiplock && $user ne 'root@pam';
 
-       die "VM $vmid already running\n" if PVE::QemuServer::check_running($vmid);
+       die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);
 
        my $realcmd = sub {
            my $upid = shift;