If our block doesn't contain any sensitive attrs, skip recursing into it
This commit is contained in:
parent
f60ae7ac08
commit
e44e03b283
|
@ -955,6 +955,10 @@ func markProviderSensitiveAttributes(schema *configschema.Block, val cty.Value)
|
||||||
func getValMarks(schema *configschema.Block, val cty.Value, path cty.Path) []cty.PathValueMarks {
|
func getValMarks(schema *configschema.Block, val cty.Value, path cty.Path) []cty.PathValueMarks {
|
||||||
var pvm []cty.PathValueMarks
|
var pvm []cty.PathValueMarks
|
||||||
for name, blockS := range schema.BlockTypes {
|
for name, blockS := range schema.BlockTypes {
|
||||||
|
// If our block doesn't contain any sensitive attributes, skip inspecting it
|
||||||
|
if !blockS.Block.ContainsSensitive() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
blockV := val.GetAttr(name)
|
blockV := val.GetAttr(name)
|
||||||
blockPath := append(path, cty.GetAttrStep{Name: name})
|
blockPath := append(path, cty.GetAttrStep{Name: name})
|
||||||
switch blockS.Nesting {
|
switch blockS.Nesting {
|
||||||
|
|
Loading…
Reference in New Issue