fix(region): qcloud vpc peer connection

This commit is contained in:
ioito
2021-12-22 14:17:30 +08:00
parent 96c8776ef4
commit 0cc1da8552
@@ -16,6 +16,7 @@ package qcloud
import (
"fmt"
"strings"
"time"
"yunion.io/x/jsonutils"
@@ -239,6 +240,9 @@ func (self *SVpcPC) GetPeerVpcId() string {
}
func (self *SVpcPC) GetPeerAccountId() string {
if strings.Contains(self.PeerUin, ".") {
return strings.Split(self.PeerUin, ".")[0]
}
return self.PeerUin
}