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

[BUG] Application Policy identifies change as replace #214

Closed
samir-gandhi opened this issue Sep 22, 2023 · 0 comments · Fixed by #227
Closed

[BUG] Application Policy identifies change as replace #214

samir-gandhi opened this issue Sep 22, 2023 · 0 comments · Fixed by #227

Comments

@samir-gandhi
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Description

It seems that because davinci_application.policy is a TypeSet, when any part of the policy changes it identifies it as a new item instead of just updating the item.

      - policy {
          - created_date = 1695407429579 -> null
          - name         = "Mainflow" -> null
          - policy_id    = "3f5101af79fee5cfa3e6bdb607c930e9" -> null
          - status       = "enabled" -> null

          - policy_flow {
              - flow_id       = "e744e2a5058404d1c74510a636a6d0a1" -> null
              - success_nodes = [] -> null
              - version_id    = -1 -> null
              - weight        = 50 -> null
            }
        }
      + policy {
          + created_date = (known after apply)
          + name         = "Mainflows"
          + policy_id    = (known after apply)
          + status       = "enabled"

          + policy_flow {
              + flow_id       = "e744e2a5058404d1c74510a636a6d0a1"
              + success_nodes = []
              + version_id    = -1
              + weight        = 50
            }
        }

        # (1 unchanged block hidden)
    }

This indicates that the hash of the set is an innaccurate representation of the schema.resource

DaVinci Terraform provider Version

v0.1.12

Terraform Version

Affected Resource(s)

  • davinci_application

Terraform Configuration Files

# change any field in an application policy. 

Debug Output

Panic Output

Expected Behavior

The field and policy should just need an update.

Actual Behavior

The policy is deleted and replaced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant