Skip to content

Commit 06cefaf

Browse files
committed
Merge pull request #804 from anshul1886/CLOUDSTACK-8834
CLOUDSTACK-8834: Fixed unable to download Template , when in multi zonesWe were listing image stores by zone id which was resulting in listing of only one image store If in that image store its download state is not DOWNLOADED then download template is failing * pr/804: CLOUDSTACK-8834: Fixed unable to download Template , when in multi zones We were listing image stores by zone id which was resulting in listing of only one image store If in that image store its download state is not DOWNLOADED then download template is failing Signed-off-by: Wido den Hollander <wido@widodh.nl>
2 parents 34caa69 + 8511d62 commit 06cefaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/com/cloud/template/TemplateManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private String extract(Account caller, Long templateId, String url, Long zoneId,
501501

502502
_accountMgr.checkAccess(caller, AccessType.OperateEntry, true, template);
503503

504-
List<DataStore> ssStores = _dataStoreMgr.getImageStoresByScope(new ZoneScope(zoneId));
504+
List<DataStore> ssStores = _dataStoreMgr.getImageStoresByScope(new ZoneScope(null));
505505

506506
TemplateDataStoreVO tmpltStoreRef = null;
507507
ImageStoreEntity tmpltStore = null;

0 commit comments

Comments
 (0)