cosa/build: fix AMIs spec
The `amis` element is an array of objects, not an object. While we're
here, add the region field.
@@ -19,7 +19,8 @@ package cosa
// https://github.com/openshift/installer/blob/a0350404997b0493d7bb16aa2875e5c42879b069/pkg/rhcos/builds.go
// For now, copy-paste updates there. Later, maybe consider making this a public API?
type Build struct {
- AMIs map[string]struct {
+ AMIs []struct {
+ Region string `json:"name"`
HVM string `json:"hvm"`
} `json:"amis"`
Azure struct {
