Re: [pve-devel] [PATCH container 2/2] add restart migration to lxc api

2016-12-01 Thread Dietmar Maurer
> @@ -880,10 +891,13 @@ __PACKAGE__->register_method({ > # test if VM exists > PVE::LXC::Config->load_config($vmid); > > + my $isrunning = PVE::LXC::check_running($vmid); > # try to detect errors early > - if (PVE::LXC::check_running($vmid)) { > - die "can't migr

[pve-devel] [PATCH container 2/2] add restart migration to lxc api

2016-12-01 Thread Dominik Csapak
this simply adds the restart flag and the optional timeout to the lxc api required for the restart mode migration Signed-off-by: Dominik Csapak --- src/PVE/API2/LXC.pm | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC