sureshanaparti commented on code in PR #9873:
URL: https://github.com/apache/cloudstack/pull/9873#discussion_r1900147746


##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -922,7 +922,7 @@ public VolumeVO allocVolume(CreateVolumeCmd cmd) throws 
ResourceAllocationExcept
 
         // Check if zone is disabled
         if (Grouping.AllocationState.Disabled == zone.getAllocationState() && 
!_accountMgr.isRootAdmin(caller.getId())) {
-            throw new PermissionDeniedException("Cannot perform this 
operation, Zone is currently disabled: " + zoneId);
+            throw new PermissionDeniedException(String.format("Cannot perform 
this operation, Zone is currently disabled: %s", zone));

Review Comment:
   ```suggestion
               throw new PermissionDeniedException(String.format("Cannot 
perform this operation, Zone: %s is currently disabled", zone));
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to