mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #5358 from swordqiu/hotfix/qj-update-status-eventlog
fix: corrent update status logclient event type
This commit is contained in:
@@ -68,7 +68,7 @@ func statusBaseSetStatus(model IStatusBase, userCred mcclient.TokenCredential, s
|
||||
notes = fmt.Sprintf("%s: %s", notes, reason)
|
||||
}
|
||||
OpsLog.LogEvent(model, ACT_UPDATE_STATUS, notes, userCred)
|
||||
logclient.AddSimpleActionLog(model, logclient.ACT_DISABLE, nil, userCred, true)
|
||||
logclient.AddSimpleActionLog(model, logclient.ACT_UPDATE_STATUS, notes, userCred, true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -182,4 +182,6 @@ const (
|
||||
ACT_INSTANCE_GROUP_UNBIND = "解绑主机组"
|
||||
|
||||
ACT_FLUSH_INSTANCE = "清空数据"
|
||||
|
||||
ACT_UPDATE_STATUS = "更新状态"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user