[lxc-devel] [lxd/master] lxc/publish: Fix fingerprint printing

stgraber on Github lxc-bot at linuxcontainers.org
Wed Jun 28 04:23:06 UTC 2017


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/20170628/c8d8d38e/attachment.bin>
-------------- next part --------------
From cfb87802155a95329d328ae5a0115d58d541ca73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 28 Jun 2017 00:22:36 -0400
Subject: [PATCH] lxc/publish: Fix fingerprint printing
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/publish.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lxc/publish.go b/lxc/publish.go
index 4254d4e8b..2d4a9e121 100644
--- a/lxc/publish.go
+++ b/lxc/publish.go
@@ -169,8 +169,6 @@ func (c *publishCmd) run(conf *config.Config, args []string) error {
 		properties[entry[0]] = entry[1]
 	}
 
-	var fp string
-
 	// We should only set the properties field if there actually are any.
 	// Otherwise we will only delete any existing properties on publish.
 	// This is something which only direct callers of the API are allowed to
@@ -247,7 +245,7 @@ func (c *publishCmd) run(conf *config.Config, args []string) error {
 		}
 	}
 
-	fmt.Printf(i18n.G("Container published with fingerprint: %s")+"\n", fp)
+	fmt.Printf(i18n.G("Container published with fingerprint: %s")+"\n", fingerprint)
 
 	return nil
 }


More information about the lxc-devel mailing list