Skip to content

Commit 432a03f

Browse files
authored
api: fix event type and description for createTag (#6779)
Fixes #6777 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 64316d5 commit 432a03f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ public void execute() {
106106
SuccessResponse response = new SuccessResponse(getCommandName());
107107
setResponseObject(response);
108108
} else {
109-
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to upload resource icon");
109+
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create resource tag(s)");
110110
}
111111
}
112112

113113
@Override
114114
public String getEventType() {
115-
return EventTypes.EVENT_RESOURCE_ICON_UPLOAD;
115+
return EventTypes.EVENT_TAGS_CREATE;
116116
}
117117

118118
@Override
119119
public String getEventDescription() {
120-
return "Uploading resource icon";
120+
return "Creating resource tag(s)";
121121
}
122122
}

0 commit comments

Comments
 (0)