mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
Guard against double marking in other locations in evaluate
This commit is contained in:
parent
9ac8e3c55e
commit
fa74710aef
@ -433,7 +433,7 @@ func (d *evaluationStateData) GetModule(addr addrs.ModuleCall, rng tfdiags.Sourc
|
||||
|
||||
instance[cfg.Name] = outputState
|
||||
|
||||
if cfg.Sensitive {
|
||||
if cfg.Sensitive && !outputState.HasMark("sensitive") {
|
||||
instance[cfg.Name] = outputState.Mark("sensitive")
|
||||
}
|
||||
}
|
||||
@ -462,7 +462,7 @@ func (d *evaluationStateData) GetModule(addr addrs.ModuleCall, rng tfdiags.Sourc
|
||||
|
||||
instance[cfg.Name] = change.After
|
||||
|
||||
if change.Sensitive {
|
||||
if change.Sensitive && !change.After.HasMark("sensitive") {
|
||||
instance[cfg.Name] = change.After.Mark("sensitive")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user