Skip to content

Commit e017ba1

Browse files
committed
improve disable account api event description
1 parent f901c6f commit e017ba1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/account/DisableAccountCmd.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,15 @@ public long getEntityOwnerId() {
108108

109109
@Override
110110
public String getEventDescription() {
111-
return "Disabling Account: " + getAccountName() + " in domain: " + getResourceUuid(ApiConstants.DOMAIN_ID);
111+
String message = "Disabling Account ";
112+
113+
if (getId() != null) {
114+
message += "with id: " + getId();
115+
} else {
116+
message += getAccountName() + " in domain: " + getResourceUuid(ApiConstants.DOMAIN_ID);
117+
}
118+
119+
return message;
112120
}
113121

114122
@Override

0 commit comments

Comments
 (0)