Merge pull request #3440 from ggiamarchi/openstack/idempotency

Fix OpenStack provider idempotency bugs
This commit is contained in:
Paul Hinze 2015-10-29 18:57:02 -05:00
commit fe2bf2d473
5 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func resourceFWFirewallV1() *schema.Resource {
"admin_state_up": &schema.Schema{ "admin_state_up": &schema.Schema{
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
Default: true, Computed: true,
}, },
"tenant_id": &schema.Schema{ "tenant_id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,

View File

@ -68,6 +68,7 @@ func resourceLBMonitorV1() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
ForceNew: false, ForceNew: false,
Computed: true,
}, },
}, },
} }

View File

@ -37,7 +37,7 @@ func resourceNetworkingFloatingIPV2() *schema.Resource {
"port_id": &schema.Schema{ "port_id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Default: "", Computed: true,
}, },
}, },
} }

View File

@ -32,6 +32,7 @@ func resourceNetworkingNetworkV2() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
ForceNew: false, ForceNew: false,
Computed: true,
}, },
"shared": &schema.Schema{ "shared": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,

View File

@ -32,6 +32,7 @@ func resourceNetworkingRouterV2() *schema.Resource {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
ForceNew: false, ForceNew: false,
Computed: true,
}, },
"external_gateway": &schema.Schema{ "external_gateway": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,