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

[ISSUE] Issue with databricks_user resource when email contains quote character #2646

Open
grusin-db opened this issue Sep 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@grusin-db
Copy link

When user_name (email) contains quote character terraform provider is no longer able to correctly handle force = true scenario and tries to create user again.

Configuration

resource "databricks_user" "this" {
  user_name    = "grzegorz.rusin'@someplace.com"
  display_name = "Grzegorz Rusin'"
  active       = true
  force        = true
}

Expected Behavior

expected behaviour would be to update the user if exists, or create a new one

Actual Behavior

the quote character in the user_name (email) makes tf think that user does not exist yet, and tries to created it, and then you end up with "user exists error", just if force = true was not handled

Steps to Reproduce

Terraform and provider versions

tested on latest 1.24.1

@grusin-db grusin-db added azure Occurring on Azure cloud bug Something isn't working and removed azure Occurring on Azure cloud labels Sep 8, 2023
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

1 participant