]> git.proxmox.com Git - pve-manager.git/blobdiff - bin/vzdump
cleanup vzdump -stop implementation
[pve-manager.git] / bin / vzdump
index 2472f272f4ff28f7acd8e12e7a6a3c65a3a963bb..8e4c346c7607676d14fb7f0af33976217942ee04 100755 (executable)
@@ -29,6 +29,7 @@ $rpcenv->set_user('root@pam');
 my $cmddef = [ 'PVE::API2::VZDump', 'vzdump', 'vmid', undef, 
               sub {
                   my $upid = shift;
+                  exit(0) if $upid eq 'OK';
                   my $status = PVE::Tools::upid_read_status($upid);
                   exit($status eq 'OK' ? 0 : -1);
               }];