make good use of ForceNew in consul_agent_service

This commit is contained in:
Max Englander 2015-10-29 11:39:27 -04:00
parent da70103a05
commit 5f5fd7c6e6
1 changed files with 4 additions and 0 deletions

View File

@ -19,12 +19,14 @@ func resourceConsulAgentService() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Computed: true, Computed: true,
ForceNew: true,
}, },
"id": &schema.Schema{ "id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Computed: true, Computed: true,
ForceNew: true,
}, },
"name": &schema.Schema{ "name": &schema.Schema{
@ -35,12 +37,14 @@ func resourceConsulAgentService() *schema.Resource {
"port": &schema.Schema{ "port": &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
ForceNew: true,
}, },
"tags": &schema.Schema{ "tags": &schema.Schema{
Type: schema.TypeList, Type: schema.TypeList,
Optional: true, Optional: true,
Elem: &schema.Schema{Type: schema.TypeString}, Elem: &schema.Schema{Type: schema.TypeString},
ForceNew: true,
}, },
}, },
} }