Compute v2: Extended Availability Zone Status (#282)
* Compute v2: Extended Availability Zone Status API
* Compute v2: Extended Availability Zone Status unit tests
* Compute v2: Extended Availability Zone Status acceptance tests
diff --git a/openstack/compute/v2/extensions/availabilityzones/results.go b/openstack/compute/v2/extensions/availabilityzones/results.go
new file mode 100644
index 0000000..96a6a50
--- /dev/null
+++ b/openstack/compute/v2/extensions/availabilityzones/results.go
@@ -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
+}