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

user_details do not work as expected #370

Open
simontabor opened this issue Apr 11, 2023 · 1 comment
Open

user_details do not work as expected #370

simontabor opened this issue Apr 11, 2023 · 1 comment

Comments

@simontabor
Copy link

simontabor commented Apr 11, 2023

When editing user_details on a user, the state does not refresh properly to reflect manual changes.

Additionally, removing user_details from a user does not work - they stay there.

Terraform Version

v1.2.9
OG provider v0.6.20

Affected Resource(s)

  • opsgenie_user

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "opsgenie_user" "user" {
  username  = "[email protected]"
  full_name = "Bob"
  locale    = "en_GB"
  timezone  = "Europe/London"
  role      = "User"
  user_details = {
    currency = "gbp"
  }
}

Debug Output

--

Panic Output

None

Expected Behavior

User details currency should be updated to match the terraform configuration

Actual Behavior

No changes are detected, or when they are they aren't applied properly

Steps to Reproduce

  1. Create a user (as above) with user_details set
  2. Remove the user_details,
  3. terraform plan - plan says currency will be removed, as expected
  4. terraform apply
  5. Check in UI - currency is not actually removed

Second issue is manual edits:

  1. Create a user (as above) with user_details set
  2. Edit the user in the UI to change the currency Additional properties attribute
  3. Terraform plan - no changes are detected

Important Factoids

References

@bateller
Copy link

Just commenting to confirm this is an ongoing 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