Skip to content

Commit 22cd79a

Browse files
committed
check more specifically
1 parent e48b106 commit 22cd79a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

provisioner/terraform/tfparse/tfparse.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (p *Parser) VariableDefaults(ctx context.Context, tags map[string]string) (
268268
}
269269
}
270270
if !found {
271-
skipped = append(skipped, v.Name)
271+
skipped = append(skipped, "var."+v.Name)
272272
continue
273273
}
274274
sv, err := interfaceToString(v.Default)
@@ -306,13 +306,14 @@ func (p *Parser) CoderParameterDefaults(ctx context.Context, varsDefaults map[st
306306
}
307307

308308
var found bool
309+
needle := strings.Join([]string{"data", dataResource.Type, dataResource.Name}, ".")
309310
for _, tv := range tags {
310-
if strings.Contains(tv, dataResource.Name) {
311+
if strings.Contains(tv, needle) {
311312
found = true
312313
}
313314
}
314315
if !found {
315-
skipped = append(skipped, dataResource.Name)
316+
skipped = append(skipped, needle)
316317
continue
317318
}
318319

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy