The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2399

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Name: test
Remote: unix:/var/lib/lxd/unix.socket
Architecture: x86_64
Created: 2016/09/12 12:29 UTC
Status: Stopped
Type: persistent
Profiles: default

Signed-off-by: Christian Brauner <christian.brau...@canonical.com>

This is quite helpful in my eyes and has been requested in #1843. (Although this was probably also about showing the remote in the log.)
From 6a6f40de56374cf7c168e6dd9581061fece94766 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@canonical.com>
Date: Mon, 19 Sep 2016 17:43:58 +0200
Subject: [PATCH] lxc/info: show remote in lxc info output

Name: test
Remote: unix:/var/lib/lxd/unix.socket
Architecture: x86_64
Created: 2016/09/12 12:29 UTC
Status: Stopped
Type: persistent
Profiles: default

Signed-off-by: Christian Brauner <christian.brau...@canonical.com>
---
 lxc/info.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxc/info.go b/lxc/info.go
index 34a6134..41c00bd 100644
--- a/lxc/info.go
+++ b/lxc/info.go
@@ -87,6 +87,9 @@ func (c *infoCmd) containerInfo(d *lxd.Client, name string, 
showLog bool) error
        const layout = "2006/01/02 15:04 UTC"
 
        fmt.Printf(i18n.G("Name: %s")+"\n", ct.Name)
+       if d.Remote != nil && d.Remote.Addr != "" {
+               fmt.Printf(i18n.G("Remote: %s")+"\n", d.Remote.Addr)
+       }
        fmt.Printf(i18n.G("Architecture: %s")+"\n", ct.Architecture)
        if ct.CreationDate.UTC().Unix() != 0 {
                fmt.Printf(i18n.G("Created: %s")+"\n", 
ct.CreationDate.UTC().Format(layout))
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to