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

Error when creating client with empty list as tags #2

Closed
gmichels opened this issue Mar 3, 2023 · 0 comments · Fixed by #3
Closed

Error when creating client with empty list as tags #2

gmichels opened this issue Mar 3, 2023 · 0 comments · Fixed by #3
Assignees
Labels
bug Something isn't working

Comments

@gmichels
Copy link
Owner

gmichels commented Mar 3, 2023

This resource:


resource "adguard_client" "test" {
  name = "Test Client"
  ids  = ["192.168.100.15", "test-client"]
  tags = []
}

Yields this error:

adguard_client.test: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to adguard_client.test, provider "provider[\"registry.terraform.io/gmichels/adguard\"]" produced an unexpected new value: .tags: was cty.ListValEmpty(cty.String), but now null.

Although the client gets created anyway.

Creation works without complaints if tags = null. Subsequent changes to tags = [] after the client has been created work just fine.

@gmichels gmichels self-assigned this Mar 3, 2023
@gmichels gmichels added the bug Something isn't working label Mar 3, 2023
@gmichels gmichels linked a pull request Mar 6, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant