The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6093
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 663addee10bf92440a23711c80045cbadde84d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Fri, 16 Aug 2019 12:34:04 -0400 Subject: [PATCH] lxc/copy: Really always strip volatile.last_state.power MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxc/copy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxc/copy.go b/lxc/copy.go index da97460c90..ae3c2ddba9 100644 --- a/lxc/copy.go +++ b/lxc/copy.go @@ -331,6 +331,11 @@ func (c *cmdCopy) copyContainer(conf *config.Config, sourceResource string, } } + if entry.Config != nil { + // Strip the last_state.power key in all cases + delete(entry.Config, "volatile.last_state.power") + } + // Do the actual copy if c.flagTarget != "" { dest = dest.UseTarget(c.flagTarget)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel