From 57426bc96a9f67b0669387a6ba474c4d40928349 Mon Sep 17 00:00:00 2001 From: runzexia Date: Fri, 15 Dec 2017 15:39:37 +0800 Subject: [PATCH] Fix lb eips --- service/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/types.go b/service/types.go index 1dcbf05..7143ec4 100644 --- a/service/types.go +++ b/service/types.go @@ -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"` @@ -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 }