Skip to content

Commit

Permalink
Add VirtualBox artifact to stream and release metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
prestist committed Apr 4, 2022
1 parent d8d6a46 commit 3f5c701
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type Media struct {
Openstack *PlatformBase `json:"openstack"`
PowerVS *PlatformIBMCloud `json:"powervs"`
Qemu *PlatformBase `json:"qemu"`
VirtualBox *PlatformBase `json:"virtualbox"`
Vmware *PlatformBase `json:"vmware"`
Vultr *PlatformBase `json:"vultr"`
}
Expand Down
13 changes: 6 additions & 7 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,12 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {
}
}

// if releaseArch.Media.Virtualbox != nil {
// virtualbox := StreamMediaDetails{
// Release: rel.Release,
// Formats: releaseArch.Media.Virtualbox.Artifacts,
// }
// artifacts.Virtualbox = &virtualbox
// }
if releaseArch.Media.VirtualBox != nil {
artifacts["virtualbox"] = stream.PlatformArtifacts{
Release: rel.Release,
Formats: mapFormats(releaseArch.Media.VirtualBox.Artifacts),
}
}

if releaseArch.Media.Vmware != nil {
artifacts["vmware"] = stream.PlatformArtifacts{
Expand Down

0 comments on commit 3f5c701

Please sign in to comment.