Skip to content

Commit 51b3c98

Browse files
author
Pam Selle
authored
Merge pull request #27286 from hashicorp/backport/pselle/double-mark/strangely-positive-ram
Backport of Guard against double marking in other locations in evaluate into v0.14
2 parents c53371e + ade3789 commit 51b3c98

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)