Execute the create command otherwise we don't create anything
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3543a8e8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3543a8e8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3543a8e8 Branch: refs/heads/qemu-img Commit: 3543a8e85eb7aa9061ee50a143ef5785a78c9653 Parents: d9df85f Author: Wido den Hollander <[email protected]> Authored: Sat Feb 16 16:01:27 2013 +0100 Committer: Wido den Hollander <[email protected]> Committed: Sat Feb 16 16:01:27 2013 +0100 ---------------------------------------------------------------------- .../org/apache/cloudstack/utils/qemu/QemuImg.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3543a8e8/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 85754a3..0bcbf70 100644 --- a/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java +++ b/utils/src/org/apache/cloudstack/utils/qemu/QemuImg.java @@ -83,6 +83,7 @@ public class QemuImg { if (backingFile == null) { s.add(Long.toString(file.getSize())); } + s.execute(); } public void create(QemuImgFile file) { @@ -128,7 +129,7 @@ public class QemuImg { String[] lineBuffer = outputBuffer[i].split(":", 2); if (lineBuffer.length == 2) { HashMap<String,String> info = new HashMap<String,String>(); - info.put(lineBuffer[0].trim(), lineBuffer[1].trim()); + info.put(lineBuffer[0].trim().replace(" ", "_"), lineBuffer[1].trim()); list.add(info); } }
