The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/24
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: Thomas Hipp <thomas.h...@canonical.com>
From 34d4d2817e0a1c37f9a8dc05cd7efac2e53c7d31 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <thomas.h...@canonical.com> Date: Thu, 1 Mar 2018 13:24:19 +0100 Subject: [PATCH] image: Convert int to string properly Signed-off-by: Thomas Hipp <thomas.h...@canonical.com> --- image/lxc.go | 2 +- image/lxd_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/image/lxc.go b/image/lxc.go index 10b90f3..64d0ceb 100644 --- a/image/lxc.go +++ b/image/lxc.go @@ -96,7 +96,7 @@ func (l *LXCImage) createMetadata() error { } err = l.writeMetadata(filepath.Join(metaDir, "expiry"), - string(shared.GetExpiryDate(time.Now(), l.definition.Expiry).Unix())) + fmt.Sprint(shared.GetExpiryDate(time.Now(), l.definition.Expiry).Unix())) if err != nil { return fmt.Errorf("Error writing 'expiry': %s", err) } diff --git a/image/lxd_test.go b/image/lxd_test.go index 48b2fad..a855de1 100644 --- a/image/lxd_test.go +++ b/image/lxd_test.go @@ -133,8 +133,8 @@ func TestLXDCreateMetadata(t *testing.T) { }, { "CreationDate", - string(image.Metadata.CreationDate), - string(image.creationDate.Unix()), + fmt.Sprint(image.Metadata.CreationDate), + fmt.Sprint(image.creationDate.Unix()), }, { "Properties[architecture]",
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel