Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Nov 20, 2024
1 parent a0afa8b commit 7b66ded
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions provider/pkg/schema/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,12 @@ func GatherPackage(
}

// Enrich with metadata about CF Ref Intrinsic function behavior.
for resKey, res := range mdata.Resources {
if r, ok := refDB.Resources[res.CfType]; ok {
res.CfRef = &r.RefReturns.CfRefBehavior
mdata.Resources[resKey] = res
if refDB != nil {
for resKey, res := range mdata.Resources {
if r, ok := refDB.Resources[res.CfType]; ok {
res.CfRef = &r.RefReturns.CfRefBehavior
mdata.Resources[resKey] = res
}
}
}

Expand Down

0 comments on commit 7b66ded

Please sign in to comment.