mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-30 16:03:37 -04:00
Structured Plan Renderer: Remove attributes that do not match the relevant attributes filter (#32509)
* remove attributes that do not match the relevant attributes filter * fix formatting * fix renderer function, don't drop irrelevant attributes just mark them as no-ops * fix imports
This commit is contained in:
@@ -64,9 +64,11 @@ func (change Change) checkForUnknown(childUnknown interface{}, computeDiff func(
|
||||
// accurately.
|
||||
|
||||
beforeValue := Change{
|
||||
Before: change.Before,
|
||||
BeforeSensitive: change.BeforeSensitive,
|
||||
Unknown: childUnknown,
|
||||
Before: change.Before,
|
||||
BeforeSensitive: change.BeforeSensitive,
|
||||
Unknown: childUnknown,
|
||||
ReplacePaths: change.ReplacePaths,
|
||||
RelevantAttributes: change.RelevantAttributes,
|
||||
}
|
||||
return change.asDiff(renderers.Unknown(computeDiff(beforeValue))), true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user