Skip to content

Commit

Permalink
refactor: use new stemcell utility
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Jul 6, 2023
1 parent a8380d7 commit 3a597de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/builder/release_manifest_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func (r ReleaseManifestReader) Read(releaseTarball string) (Part, error) {
return Part{}, err
}

stemcellOS, stemcellVersion, stemcelOK := inputReleaseManifest.Stemcell()
if !stemcelOK && len(inputReleaseManifest.CompiledPackages) > 0 {
stemcellOS, stemcellVersion, stemcellOK := inputReleaseManifest.Stemcell()
if !stemcellOK && len(inputReleaseManifest.CompiledPackages) > 0 {
return Part{}, fmt.Errorf("%s/%s has invalid stemcell: %q", inputReleaseManifest.Name, inputReleaseManifest.Version, inputReleaseManifest.CompiledPackages[0].Stemcell)
}

Expand Down

0 comments on commit 3a597de

Please sign in to comment.