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] } }