mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): avoid panic
This commit is contained in:
@@ -4918,6 +4918,7 @@ func (host *SHost) SyncEsxiHostWires(ctx context.Context, userCred mcclient.Toke
|
||||
HostId: host.GetId(),
|
||||
WireId: vsWire.WireId,
|
||||
}
|
||||
hostwire.SetModelManager(HostwireManager, hostwire)
|
||||
hostwire.MacAddr = vsWire.Mac
|
||||
err := HostwireManager.TableSpec().Insert(ctx, hostwire)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user