Natural order of AMI artifacts
This commit is contained in:
parent
1de4be0483
commit
8703937cde
|
@ -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{} {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue