incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlsoren...@apache.org
Subject [45/50] [abbrv] git commit: netapp: Fix String conversion method of long id
Date Thu, 10 Jan 2013 00:59:34 GMT
netapp: Fix String conversion method of long id

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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

Branch: refs/heads/resizevolume
Commit: 4e71a5a7b9b6778a59ffb741249b01be4db7c2ad
Parents: 066edc1
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Wed Jan 9 11:22:35 2013 -0800
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Wed Jan 9 11:22:35 2013 -0800

----------------------------------------------------------------------
 .../src/com/cloud/netapp/NetappManagerImpl.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/4e71a5a7/plugins/file-systems/netapp/src/com/cloud/netapp/NetappManagerImpl.java
----------------------------------------------------------------------
diff --git a/plugins/file-systems/netapp/src/com/cloud/netapp/NetappManagerImpl.java b/plugins/file-systems/netapp/src/com/cloud/netapp/NetappManagerImpl.java
index 7dcb9d3..1fdd250 100644
--- a/plugins/file-systems/netapp/src/com/cloud/netapp/NetappManagerImpl.java
+++ b/plugins/file-systems/netapp/src/com/cloud/netapp/NetappManagerImpl.java
@@ -660,7 +660,7 @@ public class NetappManagerImpl implements NetappManager
     		lun = _lunDao.persist(lun);
     		
     		//Lun id created: 6 digits right justified eg. 000045
-    		String lunIdStr = lun.getId().toString();
+    		String lunIdStr = String.valueOf(lun.getId());
     		String zeroStr = "000000";
     		int length = lunIdStr.length();
     		int offset = 6-length;


Mime
View raw message