Skip to content

Commit 014f36b

Browse files
committed
updated files to use project#name format
1 parent 559112a commit 014f36b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cc_network_profiles.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ locals {
55
"type" : "cli.templates"
66
"attributes" : [for template in try(profile.dayn_templates, []) :
77
{
8-
"template_id" : try(catalystcenter_template.regular_template["${template.project_name}#${template.name}"].id, catalystcenter_template.composite_template["${template.project_name}#${template.name}"].id, catalystcenter_template.regular_template[local.template_name_to_key[try(template.name, template)]].id, catalystcenter_template.composite_template[local.template_name_to_key[try(template.name, template)]].id, null)
8+
"template_id" : try(catalystcenter_template.regular_template[template].id, catalystcenter_template.composite_template[template].id, catalystcenter_template.regular_template[local.template_name_to_key[template]].id, catalystcenter_template.composite_template[local.template_name_to_key[template]].id, null)
99
}
1010
]
1111
},
1212
{
1313
"type" : "day0.templates"
1414
"attributes" : [for template in try(profile.onboarding_templates, []) :
1515
{
16-
"template_id" : try(catalystcenter_template.regular_template["${template.project_name}#${template.name}"].id, catalystcenter_template.composite_template["${template.project_name}#${template.name}"].id, catalystcenter_template.regular_template[local.template_name_to_key[try(template.name, template)]].id, catalystcenter_template.composite_template[local.template_name_to_key[try(template.name, template)]].id, null)
16+
"template_id" : try(catalystcenter_template.regular_template[template].id, catalystcenter_template.composite_template[template].id, catalystcenter_template.regular_template[local.template_name_to_key[template]].id, catalystcenter_template.composite_template[local.template_name_to_key[template]].id, null)
1717
}
1818
]
1919
}]

cc_pnp.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "catalystcenter_pnp_device_claim_site" "claim_device" {
1919
rf_profile = try(each.value.rf_profile, local.defaults.catalyst_center.pnp.devices.rf_profile, null)
2020
image_id = try(each.value.image_id, local.defaults.catalyst_center.pnp.devices.image_id, null)
2121
image_skip = try(each.value.image_skip, local.defaults.catalyst_center.pnp.devices.image_skip, null)
22-
config_id = try(catalystcenter_template.regular_template["${each.value.onboarding_template.project_name}#${each.value.onboarding_template.name}"].id, catalystcenter_template.regular_template[local.template_name_to_key[each.value.onboarding_template.name]].id, data.catalystcenter_template.template["${each.value.onboarding_template.project_name}#${each.value.onboarding_template.name}"].id, data.catalystcenter_template.template[local.resource_key_to_template_key[local.template_name_to_key[each.value.onboarding_template.name]]].id, null)
22+
config_id = try(catalystcenter_template.regular_template[each.value.onboarding_template.name].id, catalystcenter_template.regular_template[local.template_name_to_key[each.value.onboarding_template.name]].id, data.catalystcenter_template.template[each.value.onboarding_template.name].id, data.catalystcenter_template.template[local.resource_key_to_template_key[each.value.onboarding_template.name]].id, data.catalystcenter_template.template[local.resource_key_to_template_key[local.template_name_to_key[each.value.onboarding_template.name]]].id, null)
2323
config_parameters = try(each.value.onboarding_template.variables, local.defaults.catalyst_center.onboarding_templates.variables, null)
2424

2525
depends_on = [catalystcenter_network_profile.switching_network_profile]

0 commit comments

Comments
 (0)