[lxc-devel] [lxd/master] lxd/certificates: Add missing name value

stgraber on Github lxc-bot at linuxcontainers.org
Wed Dec 6 20:30:12 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171206/098c3197/attachment.bin>
-------------- next part --------------
From b72273f2afc12b5b26132fc0149144eb284378dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 6 Dec 2017 15:29:17 -0500
Subject: [PATCH] lxd/certificates: Add missing name value
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4080

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/certificates.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/certificates.go b/lxd/certificates.go
index 21b8e8c79..97dba38a7 100644
--- a/lxd/certificates.go
+++ b/lxd/certificates.go
@@ -33,6 +33,7 @@ func certificatesGet(d *Daemon, r *http.Request) Response {
 			resp := api.Certificate{}
 			resp.Fingerprint = baseCert.Fingerprint
 			resp.Certificate = baseCert.Certificate
+			resp.Name = baseCert.Name
 			if baseCert.Type == 1 {
 				resp.Type = "client"
 			} else {


More information about the lxc-devel mailing list