cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject git commit: updated refs/heads/volume-upload to faaa136
Date Mon, 27 Apr 2015 09:43:48 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/volume-upload 75ae90b07 -> faaa1365a


Throwing an exception incase the template service couldnt register template.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/faaa1365
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/faaa1365
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/faaa1365

Branch: refs/heads/volume-upload
Commit: faaa1365a3e9f8729967f85701befa43a45bdcb6
Parents: 75ae90b
Author: Rajani Karuturi <rajanikaruturi@gmail.com>
Authored: Mon Apr 27 15:00:35 2015 +0530
Committer: Rajani Karuturi <rajanikaruturi@gmail.com>
Committed: Mon Apr 27 15:12:09 2015 +0530

----------------------------------------------------------------------
 server/src/com/cloud/template/TemplateManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/faaa1365/server/src/com/cloud/template/TemplateManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/template/TemplateManagerImpl.java b/server/src/com/cloud/template/TemplateManagerImpl.java
index 10ff77f..af35dd8 100755
--- a/server/src/com/cloud/template/TemplateManagerImpl.java
+++ b/server/src/com/cloud/template/TemplateManagerImpl.java
@@ -384,7 +384,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
 
             return response;
         } else {
-            return null;
+            throw new CloudRuntimeException("Unable to register template.");
         }
     }
 


Mime
View raw message