cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject git commit: updated refs/heads/master to 06bbcde
Date Fri, 25 Apr 2014 17:58:13 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master e9fb90659 -> 06bbcde45


Organized an algorithm a bit more


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

Branch: refs/heads/master
Commit: 06bbcde4587438f22f020ffb0d2ebe6e09c72163
Parents: e9fb906
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Fri Apr 25 11:56:43 2014 -0600
Committer: Mike Tutkowski <mike.tutkowski@solidfire.com>
Committed: Fri Apr 25 11:57:54 2014 -0600

----------------------------------------------------------------------
 .../hypervisor/vmware/manager/VmwareStorageManagerImpl.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/06bbcde4/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
index fbba322..c1b907e 100644
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
@@ -1179,7 +1179,9 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager
{
             result = result.substring(0, result.length() - (fileType).length());
         }
 
-        String[] str = result.split("-");
+        final String token = "-";
+
+        String[] str = result.split(token);
         int length = str.length;
 
         if (length == 1 || length == 2) {
@@ -1187,7 +1189,7 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager
{
         }
 
         if (length > 2) {
-            return str[0] + "-" + str[1];
+            return str[0] + token + str[1];
         }
 
         return result;


Mime
View raw message