aws elb listener&rule name too long fix

This commit is contained in:
tangbin
2020-08-01 11:13:00 +08:00
parent f232c4cd4f
commit ccb2cbce41
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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 {