Skip to content

Commit 030b56a

Browse files
apply Daan suggestion
1 parent 514e57b commit 030b56a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/user/DeleteUserKeysCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ public String getEventType() {
6868

6969
@Override
7070
public String getEventDescription() {
71-
return String.format("Deleting API keypair with ID equal to %s", id);
71+
ApiKeyPair keyPair = apiKeyPairService.findById(id);
72+
return String.format("Deleting API key pair with ID [%s]%s", id,
73+
keyPair == null ? "." : String.format(" and name [%s].", keyPair.getName()));
7274
}
7375

7476
@Override

0 commit comments

Comments
 (0)