DaanHoogland commented on code in PR #12502:
URL: https://github.com/apache/cloudstack/pull/12502#discussion_r2717193603
##########
api/src/main/java/org/apache/cloudstack/api/command/admin/account/DisableAccountCmd.java:
##########
@@ -108,7 +108,15 @@ public long getEntityOwnerId() {
@Override
public String getEventDescription() {
- return "Disabling Account: " + getAccountName() + " in domain: " +
getDomainId();
+ String message = "Disabling Account ";
+
+ if (getId() != null) {
+ message += "with id: " + getResourceUuid(ApiConstants.ID);
Review Comment:
```suggestion
message += "with ID: " + getResourceUuid(ApiConstants.ID);
```
##########
api/src/main/java/org/apache/cloudstack/api/command/admin/account/DisableAccountCmd.java:
##########
@@ -108,7 +108,15 @@ public long getEntityOwnerId() {
@Override
public String getEventDescription() {
- return "Disabling Account: " + getAccountName() + " in domain: " +
getDomainId();
+ String message = "Disabling Account ";
+
+ if (getId() != null) {
+ message += "with id: " + getResourceUuid(ApiConstants.ID);
+ } else {
+ message += getAccountName() + " in domain: " +
getResourceUuid(ApiConstants.DOMAIN_ID);
Review Comment:
```suggestion
message += getAccountName() + " in Domain: " +
getResourceUuid(ApiConstants.DOMAIN_ID);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]