[lxc-devel] [lxd/master] lxc info: add profiles
tych0 on Github
lxc-bot at linuxcontainers.org
Tue Feb 9 22:52:33 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 559 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160209/54ab554d/attachment.bin>
-------------- next part --------------
From f5e469244ff8561b57007be80f7b18cbd596c44a Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at 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.andersen at 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)
More information about the lxc-devel
mailing list