Natural order of AMI artifacts

This commit is contained in:
Łukasz Kostka 2017-08-24 20:57:12 +02:00
parent 1de4be0483
commit 8703937cde
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ func (a *Artifact) String() string {
} }
sort.Strings(amiStrings) 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{} { func (a *Artifact) State(name string) interface{} {

View File

@ -48,9 +48,9 @@ func TestArtifactState_atlasMetadata(t *testing.T) {
func TestArtifactString(t *testing.T) { func TestArtifactString(t *testing.T) {
expected := `AMIs were created: expected := `AMIs were created:
east: foo east: foo
west: bar` west: bar
`
amis := make(map[string]string) amis := make(map[string]string)
amis["east"] = "foo" amis["east"] = "foo"