Github user priyankparihar commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1894#discussion_r104105564
  
    --- Diff: 
api/src/org/apache/cloudstack/api/command/admin/template/CopyTemplateCmdByAdmin.java
 ---
    @@ -40,11 +40,20 @@
         @Override
         public void execute() throws ResourceAllocationException{
             try {
    +            if (destZoneId == null && (destZoneIds == null || 
destZoneIds.size() == 0))
    +                throw new ServerApiException(ApiErrorCode.PARAM_ERROR,
    +                        "Either destzoneid or destzoneids parameters have 
to be specified.");
    +
    --- End diff --
    
    Error statement and conditional statement logic are not conveying same 
message. Some correction is required.  


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to