[lxc-devel] [lxd/master] lxc/image: Fix URL-based imports

stgraber on Github lxc-bot at linuxcontainers.org
Tue Aug 14 13:55:44 UTC 2018


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/20180814/3597e274/attachment.bin>
-------------- next part --------------
From 5286ed7b399d3111bdfd8e6a8aa93ed7c91073f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 14 Aug 2018 09:55:05 -0400
Subject: [PATCH] lxc/image: Fix URL-based imports
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4919

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/image.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxc/image.go b/lxc/image.go
index 4e9afa5f6..9e98ac154 100644
--- a/lxc/image.go
+++ b/lxc/image.go
@@ -690,6 +690,7 @@ func (c *cmdImageImport) Run(cmd *cobra.Command, args []string) error {
 		image.Source.Mode = "pull"
 		image.Source.Protocol = "direct"
 		image.Source.URL = imageFile
+		createArgs = nil
 	} else {
 		var meta io.ReadCloser
 		var rootfs io.ReadCloser


More information about the lxc-devel mailing list