mirror of https://github.com/hashicorp/terraform
provider/openstack: Set Availability Zone in Instances (#12610)
* provider/openstack: Set Availability Zone in Instances This commit configures the openstack_compute_instance_v2 resource to set the Availability Zone of the instance resource. * vendor: Updating Gophercloud for OpenStackpull/12619/head
parent
cbfb29cd8f
commit
f4e74650f0
@ -0,0 +1,12 @@
|
||||
package availabilityzones
|
||||
|
||||
// ServerExt is an extension to the base Server object
|
||||
type ServerExt struct {
|
||||
// AvailabilityZone is the availabilty zone the server is in.
|
||||
AvailabilityZone string `json:"OS-EXT-AZ:availability_zone"`
|
||||
}
|
||||
|
||||
// UnmarshalJSON to override default
|
||||
func (r *ServerExt) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
Loading…
Reference in new issue