mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): make tls-creds empty when no tls migrate
This commit is contained in:
@@ -682,7 +682,14 @@ func (s *SGuestLiveMigrateTask) startMigrate(res string) {
|
||||
})
|
||||
})
|
||||
} else {
|
||||
s.doMigrate()
|
||||
s.Monitor.MigrateSetParameter("tls-creds", "", func(res string) {
|
||||
if strings.Contains(strings.ToLower(res), "error") {
|
||||
s.migrateTask = nil
|
||||
hostutils.TaskFailed(s.ctx, fmt.Sprintf("Migrate set tls-creds to empty error: %s", res))
|
||||
return
|
||||
}
|
||||
s.doMigrate()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user