[lxc-devel] [lxd/master] show remote in the --show-log example provided on error

tych0 on Github lxc-bot at linuxcontainers.org
Mon Jun 13 21:11:39 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160613/4ff2bcc2/attachment.bin>
-------------- next part --------------
From f39455ad979a8051ac2a2b0853f815182ff14fd6 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Mon, 13 Jun 2016 15:11:18 -0600
Subject: [PATCH] show remote in the --show-log example provided on error

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lxc/action.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc/action.go b/lxc/action.go
index b91ad1c..1cf6a13 100644
--- a/lxc/action.go
+++ b/lxc/action.go
@@ -90,7 +90,7 @@ func (c *actionCmd) run(config *lxd.Config, args []string) error {
 		}
 
 		if err := d.WaitForSuccess(resp.Operation); err != nil {
-			return fmt.Errorf("%s\n"+i18n.G("Try `lxc info --show-log %s` for more info"), err, name)
+			return fmt.Errorf("%s\n"+i18n.G("Try `lxc info --show-log %s` for more info"), err, nameArg)
 		}
 	}
 	return nil


More information about the lxc-devel mailing list