[lxc-devel] [lxd/master] Fix remote add with Go tip
stgraber on Github
lxc-bot at linuxcontainers.org
Mon Oct 24 19:21:18 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/20161024/5f3dfdca/attachment.bin>
-------------- next part --------------
From 22faf20e50c81b362a1da208198c507da6ceb00c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 24 Oct 2016 15:20:49 -0400
Subject: [PATCH] Fix remote add with Go tip
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>
---
lxc/remote.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxc/remote.go b/lxc/remote.go
index 27d9bd4..058b295 100644
--- a/lxc/remote.go
+++ b/lxc/remote.go
@@ -112,7 +112,7 @@ func (c *remoteCmd) addServer(config *lxd.Config, server string, addr string, ac
/* Complex remote URL parsing */
remoteURL, err := url.Parse(addr)
if err != nil {
- return err
+ remoteURL = &url.URL{Host: addr}
}
// Fast track simplestreams
More information about the lxc-devel
mailing list