This repository has been archived by the owner on Dec 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing the AvailabilityZones attribute
It only returned a single zone, even if multiple where set.
- Loading branch information
Sander van Harmelen
committed
Dec 16, 2014
1 parent
b2b88cf
commit 7af7f61
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,11 +118,6 @@ type InstanceState struct { | |
ReasonCode string `xml:"ReasonCode"` | ||
} | ||
|
||
// An Instance attaches to an elb | ||
type AvailabilityZone struct { | ||
AvailabilityZone string `xml:"member"` | ||
} | ||
|
||
// ---------------------------------------------------------------------------- | ||
// AddTags | ||
|
||
|
@@ -277,16 +272,15 @@ func (elb *ELB) DeleteLoadBalancer(options *DeleteLoadBalancer) (resp *SimpleRes | |
|
||
// An individual load balancer | ||
type LoadBalancer struct { | ||
LoadBalancerName string `xml:"LoadBalancerName"` | ||
Listeners []Listener `xml:"ListenerDescriptions>member"` | ||
Instances []Instance `xml:"Instances>member"` | ||
HealthCheck HealthCheck `xml:"HealthCheck"` | ||
AvailabilityZones []AvailabilityZone `xml:"AvailabilityZones"` | ||
HostedZoneNameID string `xml:"CanonicalHostedZoneNameID"` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
svanharmelen
Contributor
|
||
DNSName string `xml:"DNSName"` | ||
SecurityGroups []string `xml:"SecurityGroups>member"` | ||
Scheme string `xml:"Scheme"` | ||
Subnets []string `xml:"Subnets>member"` | ||
LoadBalancerName string `xml:"LoadBalancerName"` | ||
Listeners []Listener `xml:"ListenerDescriptions>member"` | ||
Instances []Instance `xml:"Instances>member"` | ||
HealthCheck HealthCheck `xml:"HealthCheck"` | ||
AvailabilityZones []string `xml:"AvailabilityZones>member"` | ||
DNSName string `xml:"DNSName"` | ||
SecurityGroups []string `xml:"SecurityGroups>member"` | ||
Scheme string `xml:"Scheme"` | ||
Subnets []string `xml:"Subnets>member"` | ||
} | ||
|
||
// DescribeLoadBalancer request params | ||
|
Why did HostedZoneNameID disappear?