The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/1742

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 8f77f240177162c598e3c40cb908de0e0b0df098 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Thu, 10 Mar 2016 15:20:48 -0500
Subject: [PATCH] Fix parsing image names containing dots
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 shared/simplestreams.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shared/simplestreams.go b/shared/simplestreams.go
index e17b496..e74c50b 100644
--- a/shared/simplestreams.go
+++ b/shared/simplestreams.go
@@ -94,7 +94,8 @@ func (s *SimpleStreamsManifest) ToLXD() ([]ImageInfo, 
map[string][][]string) {
 
                for name, version := range product.Versions {
                        // Short of anything better, use the name as date
-                       creationDate, err := time.Parse(nameLayout, name)
+                       fields := strings.Split(name, ".")
+                       creationDate, err := time.Parse(nameLayout, fields[0])
                        if err != nil {
                                continue
                        }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to