Skip to content

Commit 229073d

Browse files
author
Daan Hoogland
committed
merge bug fixed
1 parent 9694fa6 commit 229073d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5547,7 +5547,7 @@ public void finalizeExpunge(VirtualMachine vm) {
55475547
}
55485548

55495549
private void checkForceStopVmPermission(Account callingAccount) {
5550-
callingAccountId = callingAccount == null ? null : callingAccount.getId();
5550+
Long callingAccountId = callingAccount == null ? null : callingAccount.getId();
55515551
if (!AllowUserForceStopVm.valueIn(callingAccountId)) {
55525552
logger.error("Parameter [{}] can only be passed by Admin accounts or when the allow.user.force.stop.vm config is true for the account.", ApiConstants.FORCED);
55535553
throw new PermissionDeniedException("Account does not have the permission to force stop the vm.");

0 commit comments

Comments
 (0)