Skip to content

Commit

Permalink
aws elb listener&rule name too long fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbin committed Aug 1, 2020
1 parent fbda89c commit 38e02db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/multicloud/aws/loadbalancerlistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func (self *SElbListener) GetId() string {
}

func (self *SElbListener) GetName() string {
return self.ListenerArn
segs := strings.Split(self.ListenerArn, "/")
return segs[len(segs)-1]
}

func (self *SElbListener) GetGlobalId() string {
Expand Down
3 changes: 2 additions & 1 deletion pkg/multicloud/aws/loadbalancerlistenerrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func (self *SElbListenerRule) GetId() string {
}

func (self *SElbListenerRule) GetName() string {
return self.RuleArn
segs := strings.Split(self.RuleArn, "/")
return segs[len(segs)-1]
}

func (self *SElbListenerRule) GetGlobalId() string {
Expand Down

0 comments on commit 38e02db

Please sign in to comment.