DaanHoogland commented on a change in pull request #4469:
URL: https://github.com/apache/cloudstack/pull/4469#discussion_r524074866



##########
File path: 
api/src/main/java/org/apache/cloudstack/api/command/user/project/CreateProjectCmd.java
##########
@@ -116,7 +116,7 @@ public long getEntityOwnerId() {
             throw new InvalidParameterValueException("Account name and domain 
id must be specified together");
         }
 
-        if (userId != null && (accountId == null && domainId == null)) {
+        if (userId != null && (accountId == null || domainId == null)) {
             throw new InvalidParameterValueException("Account ID and Domain ID 
must be specified with userID");

Review comment:
       throw an exception when either is null, would mean both may not be null. 
The message was already the (not yet implemented) new condition.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to