mirror of https://github.com/apache/cloudstack.git
Merge daa38136ab into 9bbd32a8ef
This commit is contained in:
commit
b4a069abb7
|
|
@ -481,7 +481,8 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
}
|
||||
|
||||
if (imageStore == null) {
|
||||
throw new CloudRuntimeException(String.format("Cannot find an image store for zone [%s].", zoneId));
|
||||
logger.error("Cannot find an image store for zone [{}].", zoneId);
|
||||
throw new CloudRuntimeException("Failed to create template. Please contact the cloud administrator.");
|
||||
}
|
||||
|
||||
return imageStore;
|
||||
|
|
@ -1728,7 +1729,8 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
}
|
||||
DataStore store = _dataStoreMgr.getImageStoreWithFreeCapacity(zoneId);
|
||||
if (store == null) {
|
||||
throw new CloudRuntimeException("cannot find an image store for zone " + zoneId);
|
||||
logger.error("Cannot find an image store for zone [{}].", zoneId);
|
||||
throw new CloudRuntimeException("Failed to create template. Please contact the cloud administrator.");
|
||||
}
|
||||
AsyncCallFuture<TemplateApiResult> future;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue