CLOUDSTACK-1350 Management server Stop and start causes previously downloaded ISOs to redownload
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9d043cba Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9d043cba Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9d043cba Branch: refs/heads/ui-regions Commit: 9d043cba812a625d00de57da49a6a4921675a447 Parents: f30da78 Author: Mice Xia <[email protected]> Authored: Wed Feb 27 14:35:45 2013 +0800 Committer: Mice Xia <[email protected]> Committed: Wed Feb 27 17:25:01 2013 +0800 ---------------------------------------------------------------------- .../cloud/storage/template/RawImageProcessor.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9d043cba/core/src/com/cloud/storage/template/RawImageProcessor.java ---------------------------------------------------------------------- diff --git a/core/src/com/cloud/storage/template/RawImageProcessor.java b/core/src/com/cloud/storage/template/RawImageProcessor.java index 7833eab..a002df5 100644 --- a/core/src/com/cloud/storage/template/RawImageProcessor.java +++ b/core/src/com/cloud/storage/template/RawImageProcessor.java @@ -57,6 +57,7 @@ public class RawImageProcessor extends AdapterBase implements Processor { String imgPath = templatePath + File.separator + templateName + "." + ImageFormat.RAW.getFileExtension(); if (!_storage.exists(imgPath)) { s_logger.debug("Unable to find raw image:" + imgPath); + return null; } FormatInfo info = new FormatInfo(); info.format = ImageFormat.RAW;
