File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2181,11 +2181,13 @@ func (e *programEvaluator) evaluatePropertyAccessTail(expr ast.Expr, receiver in
21812181 } else if ! ok || prop .IsNull () {
21822182 receiver = nil
21832183 } else {
2184- // Not-known-to-be-unknown properties inside maps containing unknowns
2185- // should be treated as unknown during previews to ensure that we
2186- // don't end up using old values.
2184+ // Not-known-to-be-unknown output/computed properties inside maps
2185+ // containing unknowns should be treated as unknown during previews to
2186+ // ensure that we don't end up using old values.
21872187 if e .pulumiCtx .DryRun () && x .ContainsUnknowns () && ! prop .ContainsUnknowns () {
2188- return unknownOutput (), true
2188+ if prop .IsOutput () || prop .IsComputed () {
2189+ return unknownOutput (), true
2190+ }
21892191 }
21902192
21912193 receiver = prop
You can’t perform that action at this time.
0 commit comments