This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.17 by this push:
new 432a03fb02 api: fix event type and description for createTag (#6779)
432a03fb02 is described below
commit 432a03fb02870d3e3b6f72cd5d50c7846b25588b
Author: Abhishek Kumar <[email protected]>
AuthorDate: Thu Sep 29 11:10:30 2022 +0530
api: fix event type and description for createTag (#6779)
Fixes #6777
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
---
.../org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/api/src/main/java/org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java
b/api/src/main/java/org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java
index bc6817096b..6d34444cb3 100644
---
a/api/src/main/java/org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java
+++
b/api/src/main/java/org/apache/cloudstack/api/command/user/tag/CreateTagsCmd.java
@@ -106,17 +106,17 @@ public class CreateTagsCmd extends BaseAsyncCmd {
SuccessResponse response = new SuccessResponse(getCommandName());
setResponseObject(response);
} else {
- throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed
to upload resource icon");
+ throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed
to create resource tag(s)");
}
}
@Override
public String getEventType() {
- return EventTypes.EVENT_RESOURCE_ICON_UPLOAD;
+ return EventTypes.EVENT_TAGS_CREATE;
}
@Override
public String getEventDescription() {
- return "Uploading resource icon";
+ return "Creating resource tag(s)";
}
}