mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-16 09:08:52 -05:00
Use built-in schema.HashString.
This commit is contained in:
parent
f763cd8b35
commit
5e0b6e3750
1 changed files with 4 additions and 8 deletions
|
|
@ -85,7 +85,7 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: stringSetHash,
|
||||
Set: schema.HashString,
|
||||
},
|
||||
|
||||
"publish_all_ports": &schema.Schema{
|
||||
|
|
@ -225,7 +225,7 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: stringSetHash,
|
||||
Set: schema.HashString,
|
||||
},
|
||||
|
||||
"links": &schema.Schema{
|
||||
|
|
@ -233,7 +233,7 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: stringSetHash,
|
||||
Set: schema.HashString,
|
||||
},
|
||||
|
||||
"ip_address": &schema.Schema{
|
||||
|
|
@ -339,7 +339,7 @@ func resourceDockerContainer() *schema.Resource {
|
|||
Optional: true,
|
||||
ForceNew: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: stringSetHash,
|
||||
Set: schema.HashString,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -407,7 +407,3 @@ func resourceDockerVolumesHash(v interface{}) int {
|
|||
|
||||
return hashcode.String(buf.String())
|
||||
}
|
||||
|
||||
func stringSetHash(v interface{}) int {
|
||||
return hashcode.String(v.(string))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue