mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-11 04:00:50 -04:00
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:
12
vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/availabilityzones/results.go
generated
vendored
Normal file
12
vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/availabilityzones/results.go
generated
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user