Skip to content

Commit ade3789

Browse files
committed
backport of commit fa74710
1 parent c53371e commit ade3789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/evaluate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (d *evaluationStateData) GetModule(addr addrs.ModuleCall, rng tfdiags.Sourc
433433

434434
instance[cfg.Name] = outputState
435435

436-
if cfg.Sensitive {
436+
if cfg.Sensitive && !outputState.HasMark("sensitive") {
437437
instance[cfg.Name] = outputState.Mark("sensitive")
438438
}
439439
}
@@ -462,7 +462,7 @@ func (d *evaluationStateData) GetModule(addr addrs.ModuleCall, rng tfdiags.Sourc
462462

463463
instance[cfg.Name] = change.After
464464

465-
if change.Sensitive {
465+
if change.Sensitive && !change.After.HasMark("sensitive") {
466466
instance[cfg.Name] = change.After.Mark("sensitive")
467467
}
468468
}

0 commit comments

Comments
 (0)