]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/API2/LXC/Status.pm
Fix #1547: on migration abort, the CT starts again
[pve-container.git] / src / PVE / API2 / LXC / Status.pm
index 39882e26e9514f3f6c834acc3ef8e7ff83d0769a..976f264a73a4bcc1755ce577957db1aaff781f19 100644 (file)
@@ -187,13 +187,7 @@ __PACKAGE__->register_method({
 
                    my $storage_cfg = cfs_read_file("storage.cfg");
 
-                   PVE::LXC::update_lxc_config($vmid, $conf);
-
-                   local $ENV{PVE_SKIPLOCK}=1 if $skiplock;
-
-                   my $cmd = ['systemctl', 'start', "pve-container\@$vmid"];
-
-                   run_command($cmd);
+                   PVE::LXC::vm_start($vmid, $conf, $skiplock);
 
                    return;
                };