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

Organization metadata not being updated #236

Closed
jmisur opened this issue Jul 13, 2022 · 2 comments · Fixed by #245
Closed

Organization metadata not being updated #236

jmisur opened this issue Jul 13, 2022 · 2 comments · Fixed by #245
Assignees
Labels

Comments

@jmisur
Copy link

jmisur commented Jul 13, 2022

Describe the problem

Organization metadata changed via terraform not updated at auth0.

What was the expected behavior?

Organization metadata would be updated - in my example "my_key" would be removed (see example below).

Reproduction

  1. Create an organization.

    resource "auth0_organization" "org" {
      name         = "my-org"
      display_name = "My Org"
    }
  2. Add organization metadata my_key = my_value via auth0 dashboard.

  3. Plan terraform again.

    This reflects in a correct plan which wants to remove metadata added manually:

    Terraform will perform the following actions:
    
      # auth0_organization.org will be updated in-place
      ~ resource "auth0_organization" "org" {
            id           = "..."
          ~ metadata     = {
              - "my_key" = "my_value" -> null
            }
            name         = "my-org"
            # (1 unchanged attribute hidden)
    
    
            # (2 unchanged blocks hidden)
        }
    
    Plan: 0 to add, 1 to change, 0 to destroy.
  4. Apply. However, the metadata are still there in auth0 dashboard after successful apply.

Environment

  • Version of terraform-provider-auth0 used: 0.32.0
@jmisur jmisur added the 🪲 bug Something isn't working label Jul 13, 2022
@sergiught
Copy link
Contributor

Hey @jmisur thanks for opening this issue, we'll take a look at this soon. However I don't have an exact ETA right now.

@sergiught
Copy link
Contributor

Hey @jmisur , we fixed this in #245 and it will get released soon!

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

Successfully merging a pull request may close this issue.

2 participants