mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-05 14:29:38 -05:00
fix: treat null user as a no-op (#318)
Closes #317 Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
parent
c904efdddc
commit
786c88ea6b
1 changed files with 7 additions and 0 deletions
|
|
@ -144,6 +144,13 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
DiffSuppressFunc: func(k, oldV, newV string, d *schema.ResourceData) bool {
|
||||
// treat "" as a no-op, which is Docker's default value
|
||||
if newV == "" {
|
||||
newV = oldV
|
||||
}
|
||||
return oldV == newV
|
||||
},
|
||||
},
|
||||
|
||||
"dns": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue