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

monitors - when use tag_ids - unexpected diff #120

Closed
azhurbilo opened this issue Sep 2, 2022 · 1 comment
Closed

monitors - when use tag_ids - unexpected diff #120

azhurbilo opened this issue Sep 2, 2022 · 1 comment

Comments

@azhurbilo
Copy link

when you use tag_ids except tag names, you can face with issue that next terraform plan/apply provider shows the diff (actually the same IDs but in different order)

example all type of monitors

~ resource "site24x7_rest_api_monitor" "xxxx" {
        id                        = "XXX"
      ~ tag_ids                   = [
          + "555057000018570008",
          + "555057000018310610",
            "555057000018309510",
            "555057000018310608",
          - "555057000018310610",
          - "555057000018570008",
        ]
        # (32 unchanged attributes hidden)
    }
    
    
    ~ resource "site24x7_website_monitor" "XXX" {
        id                          = "XXX"
      ~ tag_ids                     = [
          - "555057000018309510",
            "555057000018309517",
          - "555057000018310608",
            "555057000018570008",
          + "555057000018309510",
          + "555057000018310608",
        ]
        # (30 unchanged attributes hidden)
    }

maybe sort IDs sort.Strings(xxx) is skipped ?

jim-billy-zoho added a commit that referenced this issue Sep 8, 2022
…IN_BRANCH

Bug fix #120 - tag_ids - unexpected diff
@jim-billy-zoho
Copy link
Collaborator

@azhurbilo Thank you for raising this bug. Please use our latest version 1.0.29 and let us know if you are facing any issue.

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

No branches or pull requests

2 participants