[lxc-devel] [lxd/master] lxc/image: Fix dir handling on snap
stgraber on Github
lxc-bot at linuxcontainers.org
Sat Jul 4 18:13:29 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200704/0df1e71d/attachment.bin>
-------------- next part --------------
From 5b6260e941973d3931fa707f63fb040160f22044 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sat, 4 Jul 2020 14:12:58 -0400
Subject: [PATCH] lxc/image: Fix dir handling on snap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Closes #7619
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxc/image.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxc/image.go b/lxc/image.go
index 6ed0e13dab..e6e32cdc5c 100644
--- a/lxc/image.go
+++ b/lxc/image.go
@@ -492,7 +492,7 @@ func (c *cmdImageExport) Run(cmd *cobra.Command, args []string) error {
targetMeta := fingerprint
if len(args) > 1 {
target = args[1]
- if shared.IsDir(args[1]) {
+ if shared.IsDir(shared.HostPath(args[1])) {
targetMeta = filepath.Join(args[1], targetMeta)
} else {
targetMeta = args[1]
More information about the lxc-devel
mailing list