You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/01/11 01:01:22 UTC

[4/32] git commit: netapp: Fix String conversion method of long id

netapp: Fix String conversion method of long id

Signed-off-by: Rohit Yadav <bh...@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/javelin
Commit: 4e71a5a7b9b6778a59ffb741249b01be4db7c2ad
Parents: 066edc1
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Jan 9 11:22:35 2013 -0800
Committer: Rohit Yadav <bh...@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;