mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #12523 from ioito/hotfix/qx-openstack-sync-panic
fix(region): openstack eip sync
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -82,7 +82,7 @@ type SPort struct {
|
||||
Description string
|
||||
DeviceID string
|
||||
DeviceOwner string
|
||||
DnsAssignment DnsAssignment
|
||||
DnsAssignment []DnsAssignment
|
||||
DnsDomain string
|
||||
DnsName string
|
||||
ExtraDhcpOpts []ExtraDhcpOpt
|
||||
|
||||
Reference in New Issue
Block a user