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 OpenStack
This commit is contained in:
Joe Topjian
2017-03-12 07:59:50 -06:00
committed by Paul Stack
parent cbfb29cd8f
commit f4e74650f0
4 changed files with 37 additions and 0 deletions

View File

@@ -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
}