Skip to content

Commit

Permalink
Change stemcell_formats field to be an array
Browse files Browse the repository at this point in the history
[#152737863]

Signed-off-by: Paul Nikonowicz <pnikonowicz@pivotal.io>
  • Loading branch information
Julien Cherry authored and Paul Nikonowicz committed Nov 16, 2017
1 parent 010649f commit 71a0dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ operating_system: windows%[1]s
cloud_properties:
infrastructure: vsphere
hypervisor: esxi
stemcell_formats: vsphere-ova
stemcell_formats:
- vsphere-ova
`
return fmt.Sprintf(format, osVersion, version, sha1sum)

Expand Down
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ operating_system: windows1
cloud_properties:
infrastructure: vsphere
hypervisor: esxi
stemcell_formats: vsphere-ova
stemcell_formats:
- vsphere-ova
`
if result != expectedManifest {
t.Errorf("result:\n%s\ndoes not match expected\n%s\n", result, expectedManifest)
Expand Down

0 comments on commit 71a0dfb

Please sign in to comment.