mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
aws elb listener&rule name too long fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user