fix: remove file starting by 1 and 2 to avoid copying 1-resman-provid… (#2944)
* fix: remove file starting by 1 and 2 to avoid copying 1-resman-providers.tf, 2-project-factory-providers.tf ... * feat: add schemas to repository files --------- Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
committed by
GitHub
parent
3a62175918
commit
8cef0e8ffd
@@ -28,6 +28,8 @@ locals {
|
||||
] : []),
|
||||
[for f in fileset(path.module, "${v.populate_from}/*.tf") : f],
|
||||
[for f in fileset(path.module, "${v.populate_from}/templates/*.tpl") : f],
|
||||
[for f in fileset(path.module, "${v.populate_from}/templates/*.yaml") : f],
|
||||
[for f in fileset(path.module, "${v.populate_from}/schemas/*.json") : f],
|
||||
[for f in fileset(path.module, "${v.populate_from}/terraform.tfvars") : f]
|
||||
) : {
|
||||
project = k
|
||||
@@ -61,7 +63,7 @@ locals {
|
||||
for k in local._repository_files :
|
||||
"${k.project}/${k.name}" => k
|
||||
if !endswith(k.name, ".tf") || (
|
||||
!startswith(k.name, "0") && k.name != "globals.tf"
|
||||
!startswith(k.name, "0") && !startswith(k.name, "1") && !startswith(k.name, "2") && k.name != "globals.tf"
|
||||
)
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user