mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(region): not set baremetal is_maintenance when action is start
This commit is contained in:
@@ -52,10 +52,12 @@ func (self *BaremetalMaintenanceTask) OnEnterMaintenantModeSucc(ctx context.Cont
|
||||
if len(action) > 0 {
|
||||
logclient.AddActionLogWithStartable(self, baremetal, action, "", self.UserCred, true)
|
||||
}
|
||||
db.Update(baremetal, func() error {
|
||||
baremetal.IsMaintenance = true
|
||||
return nil
|
||||
})
|
||||
if action != logclient.ACT_VM_START {
|
||||
db.Update(baremetal, func() error {
|
||||
baremetal.IsMaintenance = true
|
||||
return nil
|
||||
})
|
||||
}
|
||||
username, _ := body.Get("username")
|
||||
password, _ := body.Get("password")
|
||||
ip, _ := body.Get("ip")
|
||||
|
||||
Reference in New Issue
Block a user