mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix: migrate interface before commit desc
This commit is contained in:
@@ -133,6 +133,7 @@ func (guest *SGuest) PerformMigrateNetwork(ctx context.Context, userCred mcclien
|
||||
// perform the database change
|
||||
_, err = db.Update(&srcNic, func() error {
|
||||
srcNic.NetworkId = destNet.Id
|
||||
srcNic.MappedIpAddr = "" // reset MappedIpAddr anyway
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user