diff --git a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java index 3cb3de1b99b..2d32d30e40b 100644 --- a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java +++ b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java @@ -5604,7 +5604,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir } private void checkForceStopVmPermission(Account callingAccount) { - callingAccountId = callingAccount == null ? null : callingAccount.getId(); + Long callingAccountId = callingAccount == null ? null : callingAccount.getId(); if (!AllowUserForceStopVm.valueIn(callingAccountId)) { 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); throw new PermissionDeniedException("Account does not have the permission to force stop the vm.");