cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aprat...@apache.org
Subject [3/3] git commit: updated refs/heads/4.5 to 96297ee
Date Wed, 20 May 2015 15:31:36 GMT
CLOUDSTACK-8467: set version to unknown instead of null


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

Branch: refs/heads/4.5
Commit: 96297eeb1064800db9a53148e080d7f558bddda8
Parents: 4215e91
Author: Abhinandan Prateek <abhinandan.prateek@shapeblue.com>
Authored: Wed May 13 12:28:50 2015 +0530
Committer: Abhinandan Prateek <agneya2001@gmail.com>
Committed: Wed May 20 21:00:50 2015 +0530

----------------------------------------------------------------------
 usage/src/com/cloud/usage/UsageManagerImpl.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/96297eeb/usage/src/com/cloud/usage/UsageManagerImpl.java
----------------------------------------------------------------------
diff --git a/usage/src/com/cloud/usage/UsageManagerImpl.java b/usage/src/com/cloud/usage/UsageManagerImpl.java
index 8f13aa2..2bf00d1 100644
--- a/usage/src/com/cloud/usage/UsageManagerImpl.java
+++ b/usage/src/com/cloud/usage/UsageManagerImpl.java
@@ -182,10 +182,7 @@ public class UsageManagerImpl extends ManagerBase implements UsageManager,
Runna
 
         final Class<?> c = UsageServer.class;
         _version = c.getPackage().getImplementationVersion();
-        if (_version == null) {
-            // TODO
-            // throw new CloudRuntimeException("Unable to find the implementation version
of this usage server");
-        }
+        if (_version == null) _version="unknown";
 
         if (s_logger.isInfoEnabled()) {
             s_logger.info("Implementation Version is " + _version);


Mime
View raw message