Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Fixing the AvailabilityZones attribute
Browse files Browse the repository at this point in the history
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.
24 changes: 9 additions & 15 deletions elb/elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Copy link
@dgouldin

dgouldin Dec 18, 2014

Why did HostedZoneNameID disappear?

This comment has been minimized.

Copy link
@svanharmelen

svanharmelen Dec 18, 2014

Contributor

Honest mistake... See PR #182

@mitchellh would be great if you could merge that one...

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
Expand Down

0 comments on commit 7af7f61

Please sign in to comment.