From 72660750fd5a9e780a3c71f3623a2ed60800210a Mon Sep 17 00:00:00 2001 From: dkalleg Date: Tue, 12 Jul 2016 18:08:16 -0700 Subject: [PATCH] Setting admin_state_up default to true This is to be inline with OpenStack defaulting admin_state_up to true. --- builtin/providers/openstack/resource_openstack_lb_listener_v2.go | 1 + .../providers/openstack/resource_openstack_lb_loadbalancer_v2.go | 1 + builtin/providers/openstack/resource_openstack_lb_member_v2.go | 1 + builtin/providers/openstack/resource_openstack_lb_monitor_v2.go | 1 + builtin/providers/openstack/resource_openstack_lb_pool_v2.go | 1 + 5 files changed, 5 insertions(+) diff --git a/builtin/providers/openstack/resource_openstack_lb_listener_v2.go b/builtin/providers/openstack/resource_openstack_lb_listener_v2.go index 51fbd2cd2..0ca6bf07b 100644 --- a/builtin/providers/openstack/resource_openstack_lb_listener_v2.go +++ b/builtin/providers/openstack/resource_openstack_lb_listener_v2.go @@ -96,6 +96,7 @@ func resourceListenerV2() *schema.Resource { "admin_state_up": &schema.Schema{ Type: schema.TypeBool, + Default: true, Optional: true, }, diff --git a/builtin/providers/openstack/resource_openstack_lb_loadbalancer_v2.go b/builtin/providers/openstack/resource_openstack_lb_loadbalancer_v2.go index 2c5877e5d..74a63c0f2 100644 --- a/builtin/providers/openstack/resource_openstack_lb_loadbalancer_v2.go +++ b/builtin/providers/openstack/resource_openstack_lb_loadbalancer_v2.go @@ -59,6 +59,7 @@ func resourceLoadBalancerV2() *schema.Resource { "admin_state_up": &schema.Schema{ Type: schema.TypeBool, + Default: true, Optional: true, }, diff --git a/builtin/providers/openstack/resource_openstack_lb_member_v2.go b/builtin/providers/openstack/resource_openstack_lb_member_v2.go index 1bb28daee..4ccf7aee5 100644 --- a/builtin/providers/openstack/resource_openstack_lb_member_v2.go +++ b/builtin/providers/openstack/resource_openstack_lb_member_v2.go @@ -73,6 +73,7 @@ func resourceMemberV2() *schema.Resource { "admin_state_up": &schema.Schema{ Type: schema.TypeBool, + Default: true, Optional: true, }, diff --git a/builtin/providers/openstack/resource_openstack_lb_monitor_v2.go b/builtin/providers/openstack/resource_openstack_lb_monitor_v2.go index edbb6f40d..51ae0acc9 100644 --- a/builtin/providers/openstack/resource_openstack_lb_monitor_v2.go +++ b/builtin/providers/openstack/resource_openstack_lb_monitor_v2.go @@ -79,6 +79,7 @@ func resourceMonitorV2() *schema.Resource { }, "admin_state_up": &schema.Schema{ Type: schema.TypeBool, + Default: true, Optional: true, }, diff --git a/builtin/providers/openstack/resource_openstack_lb_pool_v2.go b/builtin/providers/openstack/resource_openstack_lb_pool_v2.go index 373d8b2eb..aeb59caaf 100644 --- a/builtin/providers/openstack/resource_openstack_lb_pool_v2.go +++ b/builtin/providers/openstack/resource_openstack_lb_pool_v2.go @@ -116,6 +116,7 @@ func resourcePoolV2() *schema.Resource { "admin_state_up": &schema.Schema{ Type: schema.TypeBool, + Default: true, Optional: true, },