Merge pull request #12981 from ioito/hotfix/qx-vpc-peer-connection

fix(region): qcloud vpc peer connection
This commit is contained in:
Zexi Li
2021-12-22 15:52:22 +08:00
committed by GitHub
@@ -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
}