func populateFormationArtifacts(ef *ct.ExpandedFormation, artifacts map[string]*ct.Artifact) { ef.ImageArtifact = artifacts[ef.Release.ImageArtifactID()] ef.FileArtifacts = make([]*ct.Artifact, len(ef.Release.FileArtifactIDs())) for i, id := range ef.Release.FileArtifactIDs() { ef.FileArtifacts[i] = artifacts[id] } }
func populateFormationArtifacts(ef *ct.ExpandedFormation, artifacts map[string]*ct.Artifact) { ef.Artifacts = make([]*ct.Artifact, len(ef.Release.ArtifactIDs)) for i, id := range ef.Release.ArtifactIDs { ef.Artifacts[i] = artifacts[id] } }