hashicorp / terraform-provider-docker

As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
https://registry.terraform.io/providers/kreuzwerker/docker/latest
Mozilla Public License 2.0
132 stars 92 forks source link

Null user should not force a replacement #317

Closed dubo-dubon-duponey closed 3 years ago

dubo-dubon-duponey commented 4 years ago

Terraform Version

Terraform v0.13.5

Affected Resource(s)

docker_container

Terraform Configuration Files


resource "docker_container" "container" {
  ...
  user = ""
}

Expected Behavior

Not force replacement.

--user "" is a no-op and is really "use whatever is the default user for the container"

Actual Behavior

Always force replacement...

      - user              = "dubo-dubon-duponey" -> null # forces replacement