mdify batch-upgrade-service

This commit is contained in:
凡羊羊 2019-08-28 10:33:07 +08:00
parent 04065038f7
commit cdf91ad3c8

View File

@ -99,7 +99,7 @@ func createBatchEvents(build *model.BeatchOperationRequestStruct, tenantID strin
build.Body.StopInfos[i].EventID = event.EventID
}
for i := range build.Body.UpgradeInfos {
event, err := util.CreateEvent(dbmodel.TargetTypeService, "batch-build-service", build.Body.UpgradeInfos[i].ServiceID, tenantID, "", "system", dbmodel.ASYNEVENTTYPE)
event, err := util.CreateEvent(dbmodel.TargetTypeService, "batch-upgrade-service", build.Body.UpgradeInfos[i].ServiceID, tenantID, "", "system", dbmodel.ASYNEVENTTYPE)
if err != nil {
re.BatchResult = append(re.BatchResult, handler.OperationResult{ErrMsg: "create event failure", ServiceID: build.Body.UpgradeInfos[i].ServiceID})
continue