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

Commit

Permalink
Merge pull request #181 from svanharmelen/f-fix-elb-availability-zones
Browse files Browse the repository at this point in the history
Fixing the AvailabilityZones attribute
  • Loading branch information
mitchellh committed Dec 16, 2014
2 parents b2b88cf + 7af7f61 commit 4938ab6
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"`
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 4938ab6

Please sign in to comment.