The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/1584
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: foo Status: Running Type: persistent Profiles: default Init: 30777 Processcount: 14 Ips: eth0: IPV4 10.0.3.143 vethE44BHB lo: IPV4 127.0.0.1 lo: IPV6 ::1 Closes #1583 Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From f5e469244ff8561b57007be80f7b18cbd596c44a Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Tue, 9 Feb 2016 15:51:40 -0700 Subject: [PATCH] lxc info: add profiles Name: foo Status: Running Type: persistent Profiles: default Init: 30777 Processcount: 14 Ips: eth0: IPV4 10.0.3.143 vethE44BHB lo: IPV4 127.0.0.1 lo: IPV6 ::1 Closes #1583 Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- lxc/info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lxc/info.go b/lxc/info.go index be02a5b..6116341 100644 --- a/lxc/info.go +++ b/lxc/info.go @@ -3,6 +3,7 @@ package main import ( "fmt" "io/ioutil" + "strings" "gopkg.in/yaml.v2" @@ -82,6 +83,7 @@ func containerInfo(d *lxd.Client, name string, showLog bool) error { } else { fmt.Printf(i18n.G("Type: persistent") + "\n") } + fmt.Printf(i18n.G("Profiles: %s")+"\n", strings.Join(ct.Profiles, ", ")) if ct.Status.Init != 0 { fmt.Printf(i18n.G("Init: %d")+"\n", ct.Status.Init) fmt.Printf(i18n.G("Processcount: %d")+"\n", ct.Status.Processcount)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel