Use env var OS_POOL_NAME as default for pool attribute

To have the same behaviour for openstack_networking_floatingip_v2
and openstack_compute_foatingip_v2.
This commit is contained in:
Guillaume Giamarchi 2015-04-01 11:24:51 +02:00
parent a90b9db397
commit c0b85d4939
1 changed files with 4 additions and 3 deletions

View File

@ -28,9 +28,10 @@ func resourceNetworkingFloatingIPV2() *schema.Resource {
Computed: true,
},
"pool": &schema.Schema{
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
DefaultFunc: envDefaultFunc("OS_POOL_NAME"),
},
},
}