From 8703937cde4b6cc45329356c994450a344f3dfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kostka?= Date: Thu, 24 Aug 2017 20:57:12 +0200 Subject: [PATCH] Natural order of AMI artifacts --- builder/amazon/common/artifact.go | 2 +- builder/amazon/common/artifact_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/amazon/common/artifact.go b/builder/amazon/common/artifact.go index c9f9a08b5..dc50f7721 100644 --- a/builder/amazon/common/artifact.go +++ b/builder/amazon/common/artifact.go @@ -51,7 +51,7 @@ func (a *Artifact) String() string { } sort.Strings(amiStrings) - return fmt.Sprintf("AMIs were created:\n\n%s", strings.Join(amiStrings, "\n")) + return fmt.Sprintf("AMIs were created:\n%s\n", strings.Join(amiStrings, "\n")) } func (a *Artifact) State(name string) interface{} { diff --git a/builder/amazon/common/artifact_test.go b/builder/amazon/common/artifact_test.go index ccbf0a1e3..d70754eba 100644 --- a/builder/amazon/common/artifact_test.go +++ b/builder/amazon/common/artifact_test.go @@ -48,9 +48,9 @@ func TestArtifactState_atlasMetadata(t *testing.T) { func TestArtifactString(t *testing.T) { expected := `AMIs were created: - east: foo -west: bar` +west: bar +` amis := make(map[string]string) amis["east"] = "foo"