Skip to content

Commit c1295a9

Browse files
committed
fix tenant policies deploy
1 parent 4f46f2f commit c1295a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ndo_deploy_templates.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ resource "mso_schema_template_deploy_ndo" "template3" {
8585
}
8686

8787
locals {
88-
unmanaged_templates = [for template in try(local.ndo.tenant_templates, []) : template if !var.manage_tenant_templates && var.deploy_templates]
88+
unmanaged_templates = [for template in try(local.ndo.tenant_templates.tenant_policies, []) : template if !var.manage_tenant_templates && var.deploy_templates]
8989
deploy_tenant_templates = flatten([
90-
for template in concat(local.tenant_templates, local.unmanaged_templates) : {
90+
for template in try(concat(local.tenant_templates, local.unmanaged_templates), {}) : {
9191
key = template.name
9292
template_name = template.name
9393
deploy_order = try(template.deploy_order, 1)

0 commit comments

Comments
 (0)