[lxc-devel] [lxd/master] Fix API info reporting in "lxc info"

stgraber on Github lxc-bot at linuxcontainers.org
Fri Aug 12 05:08:30 UTC 2016


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/20160812/351a01be/attachment.bin>
-------------- next part --------------
From 0d172e3080f768fd419f0c97f5246983797db243 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 11 Aug 2016 23:08:18 -0600
Subject: [PATCH] Fix API info reporting in "lxc info"
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>
---
 shared/server.go | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/shared/server.go b/shared/server.go
index b16f1c2..96044da 100644
--- a/shared/server.go
+++ b/shared/server.go
@@ -18,11 +18,13 @@ type ServerStateEnvironment struct {
 }
 
 type ServerState struct {
-	APICompat   int                    `json:"api_compat"`
-	Auth        string                 `json:"auth"`
-	Environment ServerStateEnvironment `json:"environment"`
-	Config      map[string]interface{} `json:"config"`
-	Public      bool                   `json:"public"`
+	APIExtensions []string               `json:"api_extensions"`
+	APIStatus     string                 `json:"api_status"`
+	APIVersion    string                 `json:"api_version"`
+	Auth          string                 `json:"auth"`
+	Environment   ServerStateEnvironment `json:"environment"`
+	Config        map[string]interface{} `json:"config"`
+	Public        bool                   `json:"public"`
 }
 
 type BriefServerState struct {


More information about the lxc-devel mailing list