You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/05/17 17:28:37 UTC

[GitHub] nvazquez commented on a change in pull request #2652: Fix register iso in all zones

nvazquez commented on a change in pull request #2652: Fix register iso in all zones
URL: https://github.com/apache/cloudstack/pull/2652#discussion_r189039233
 
 

 ##########
 File path: server/src/com/cloud/template/TemplateAdapterBase.java
 ##########
 @@ -325,7 +325,7 @@ public TemplateProfile prepare(RegisterIsoCmd cmd) throws ResourceAllocationExce
         Long zoneId = cmd.getZoneId();
         // ignore passed zoneId if we are using region wide image store
         List<ImageStoreVO> stores = _imgStoreDao.findRegionImageStores();
-        if (!(stores != null && stores.size() > 0)) {
+        if (!(stores != null && stores.size() > 0) && zoneId != null && zoneId != -1L) {
 
 Review comment:
   Done, sorry I didn't get the use of CollectionUtils on this, can you elaborate @rafaelweingartner?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services