Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catalystcenter_assign_templates_to_tag does not remove templates from tags correct #165

Open
jolstorn opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jolstorn
Copy link

When terraform plan to remove a template association from a tag with resource catalystcenter_assign_templates_to_tag, apply complete without issues.

But the template is not removed, and subsequent plan reports a change to remove the same template. Looking in CatalystCenter the tag is not removed from the template.

tfvar:

  "tags_template_associations": {
    "SDA Border": [
      "Onboarding Border",
      "SDA - Macsec",
      "SDA - Whitelist",
      "SDA - Hardening"
    ]

resource:

resource "catalystcenter_assign_templates_to_tag" "this" {
  provider = ciscodevnet-catalystcenter
  for_each = var.tags_template_associations

  tag_id       = catalystcenter_template.this[each.key].id
  template_ids = [for t in each.key : catalystcenter_template.this[t].id]
}
@kuba-mazurkiewicz kuba-mazurkiewicz self-assigned this Jan 14, 2025
@kuba-mazurkiewicz kuba-mazurkiewicz added the bug Something isn't working label Jan 14, 2025
kuba-mazurkiewicz added a commit to kuba-mazurkiewicz/terraform-provider-catalystcenter that referenced this issue Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants