kishankavala commented on a change in pull request #2102: CLOUDSTACK-9889 
Dedication of guest vlan range to a domain
URL: https://github.com/apache/cloudstack/pull/2102#discussion_r117187817
 
 

 ##########
 File path: 
api/src/org/apache/cloudstack/api/command/admin/network/DedicateGuestVlanRangeCmd.java
 ##########
 @@ -106,14 +107,27 @@ public long getEntityOwnerId() {
 
     @Override
     public void execute() throws ResourceUnavailableException, 
ResourceAllocationException {
-        GuestVlan result = _networkService.dedicateGuestVlanRange(this);
-        if (result != null) {
-            GuestVlanRangeResponse response = 
_responseGenerator.createDedicatedGuestVlanRangeResponse(result);
-            response.setResponseName(getCommandName());
-            response.setObjectName("dedicatedguestvlanrange");
-            this.setResponseObject(response);
-        } else {
-            throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed 
to dedicate guest vlan range");
+        if (projectId == null && (accountName == null || 
accountName.isEmpty()) ) {
 
 Review comment:
   Before assuming domain dedication, check for domain id also
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to