You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2013/02/16 16:07:18 UTC

[1/7] git commit: refs/heads/qemu-img - Fix the iteration of all lines being given back

Fix the iteration of all lines being given back


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

Branch: refs/heads/qemu-img
Commit: 07096f0e9deb3929bedf7455379bfef519f98898
Parents: be90c90
Author: Wido den Hollander <wi...@42on.com>
Authored: Sat Feb 16 11:03:01 2013 +0100
Committer: Wido den Hollander <wi...@42on.com>
Committed: Sat Feb 16 11:03:01 2013 +0100

----------------------------------------------------------------------
 .../org/apache/cloudstack/utils/qemu/QemuImg.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/07096f0e/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java
----------------------------------------------------------------------
diff --git a/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java b/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java
index 33d9f8d..e37b038 100644
--- a/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java
+++ b/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java
@@ -124,7 +124,7 @@ public class QemuImg {
 
         List<Map<String, String>> list = new ArrayList<Map<String, String>>();
         String[] outputBuffer = parser.getLines().trim().split("\n");
-        for (int i = 0; i < outputBuffer.length - 1; i++) {
+        for (int i = 0; i < outputBuffer.length; i++) {
             String[] lineBuffer = outputBuffer[i].split(":");
             if (lineBuffer.length == 2) {
                 HashMap<String,String> info = new HashMap<String,String>();