Merge pull request #5358 from swordqiu/hotfix/qj-update-status-eventlog

fix: corrent update status logclient event type
This commit is contained in:
Zexi Li
2020-03-06 19:57:16 +08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
}
+2
View File
@@ -182,4 +182,6 @@ const (
ACT_INSTANCE_GROUP_UNBIND = "解绑主机组"
ACT_FLUSH_INSTANCE = "清空数据"
ACT_UPDATE_STATUS = "更新状态"
)