[lxc-devel] [lxd/master] lxc/config: Fix adding trust cert on snap

stgraber on Github lxc-bot at linuxcontainers.org
Fri Apr 6 15:51:09 UTC 2018


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/20180406/c2df07aa/attachment.bin>
-------------- next part --------------
From 8eea8f53e19c9335ac368cbd2840a8a2ca0bb5b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 6 Apr 2018 11:50:27 -0400
Subject: [PATCH] lxc/config: Fix adding trust cert on snap
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4418

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

diff --git a/lxc/config_trust.go b/lxc/config_trust.go
index 912d3da92c..54b634b83f 100644
--- a/lxc/config_trust.go
+++ b/lxc/config_trust.go
@@ -86,7 +86,7 @@ func (c *cmdConfigTrustAdd) Run(cmd *cobra.Command, args []string) error {
 
 	// Add trust relationship
 	fname := args[len(args)-1]
-	x509Cert, err := shared.ReadCert(fname)
+	x509Cert, err := shared.ReadCert(shared.HostPath(fname))
 	if err != nil {
 		return err
 	}


More information about the lxc-devel mailing list