[lxc-devel] [lxd/master] lxc/image: Fix crash due to bad arg parsing

stgraber on Github lxc-bot at linuxcontainers.org
Mon Apr 2 05:11:59 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180402/a43eb9f5/attachment.bin>
-------------- next part --------------
From c47a6a924e08035e4f5b692468318b679e9fe0ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 2 Apr 2018 01:11:43 -0400
Subject: [PATCH] lxc/image: Fix crash due to bad arg parsing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/lxc/image.go b/lxc/image.go
index 26e633efe..7baac50da 100644
--- a/lxc/image.go
+++ b/lxc/image.go
@@ -642,7 +642,6 @@ func (c *cmdImageImport) Run(cmd *cobra.Command, args []string) error {
 
 	if imageFile == "" {
 		imageFile = args[0]
-		properties = properties[1:]
 	}
 
 	if shared.PathExists(shared.HostPath(filepath.Clean(imageFile))) {


More information about the lxc-devel mailing list