Skip to content

Commit

Permalink
Merge pull request #78 from yunify/fix-lb-eips
Browse files Browse the repository at this point in the history
Fix lb eips
  • Loading branch information
runzexia authored Dec 15, 2017
2 parents 6abb240 + 57426bc commit 7ee3bf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,9 +1201,9 @@ func (v *KeyPair) Validate() error {
}

type LoadBalancer struct {
Cluster []*EIP `json:"cluster" name:"cluster"`
CreateTime *time.Time `json:"create_time" name:"create_time" format:"ISO 8601"`
Description *string `json:"description" name:"description"`
EIPs []*EIP `json:"eips" name:"eips"`
// IsApplied's available values: 0, 1
IsApplied *int `json:"is_applied" name:"is_applied"`
Listeners []*LoadBalancerListener `json:"listeners" name:"listeners"`
Expand All @@ -1225,8 +1225,8 @@ type LoadBalancer struct {

func (v *LoadBalancer) Validate() error {

if len(v.Cluster) > 0 {
for _, property := range v.Cluster {
if len(v.EIPs) > 0 {
for _, property := range v.EIPs {
if err := property.Validate(); err != nil {
return err
}
Expand Down

0 comments on commit 7ee3bf6

Please sign in to comment.