mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-18 20:52:55 -05:00
fix: workdir null behavior (#320)
Closes #319 Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
parent
de7c6be58a
commit
c904efdddc
1 changed files with 7 additions and 0 deletions
|
|
@ -191,6 +191,13 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
DiffSuppressFunc: func(k, oldV, newV string, d *schema.ResourceData) bool {
|
||||
// treat "" as a no-op, which is Docker's default behavior
|
||||
if newV == "" {
|
||||
newV = oldV
|
||||
}
|
||||
return oldV == newV
|
||||
},
|
||||
},
|
||||
"remove_volumes": {
|
||||
Type: schema.TypeBool,
|
||||
|
|
|
|||
Loading…
Reference in a new issue