Skip to content

Commit 92d8298

Browse files
GeanJSgean.silva
andauthored
Correction of the user responsible for the event (#13066)
Co-authored-by: gean.silva <gean.silva@scclouds.com.br>
1 parent ffebe8e commit 92d8298

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/main/java/com/cloud/resourcelimit/ResourceLimitManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,8 @@ public ResourceLimitVO updateResourceLimit(Long accountId, Long domainId, Intege
10371037

10381038
ResourceLimitVO limit = _resourceLimitDao.findByOwnerIdAndTypeAndTag(ownerId, ownerType, resourceType, tag);
10391039

1040-
ActionEventUtils.onActionEvent(caller.getId(), caller.getAccountId(),
1040+
Long callingUserId = CallContext.current().getCallingUserId();
1041+
ActionEventUtils.onActionEvent(callingUserId, caller.getAccountId(),
10411042
caller.getDomainId(), EventTypes.EVENT_RESOURCE_LIMIT_UPDATE,
10421043
"Resource limit updated. Resource Type: " + resourceType + ", New Value: " + max,
10431044
ownerResourceId, ownerResourceType.toString());

0 commit comments

Comments
 (0)