Merge pull request #12523 from ioito/hotfix/qx-openstack-sync-panic

fix(region): openstack eip sync
This commit is contained in:
Zexi Li
2021-10-26 19:15:50 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ func (eip *SEipAddress) GetAssociationExternalId() string {
if len(eip.PortId) > 0 {
port, err := eip.region.GetPort(eip.PortId)
if err != nil {
log.Errorf("failed to get eip port %s info", port.DeviceID)
log.Errorf("failed to get eip port %s info", eip.PortId)
return ""
}
return port.DeviceID
+1 -1
View File
@@ -82,7 +82,7 @@ type SPort struct {
Description string
DeviceID string
DeviceOwner string
DnsAssignment DnsAssignment
DnsAssignment []DnsAssignment
DnsDomain string
DnsName string
ExtraDhcpOpts []ExtraDhcpOpt