mirror of https://github.com/apache/cloudstack.git
kvm: Strip trailing comma for qemu-img convert options
Fix trailing comma for qemu-img convert options, Qemu 2.0+ not tolerant to it Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
aee35c96a8
commit
90ac1aba13
|
|
@ -236,6 +236,7 @@ public class QemuImg {
|
|||
for (Map.Entry<String, String> option : options.entrySet()) {
|
||||
optionsStr += option.getKey() + "=" + option.getValue() + ",";
|
||||
}
|
||||
optionsStr = optionsStr.replaceAll(",$", "");
|
||||
s.add(optionsStr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue