Skip to content

Commit eef39c8

Browse files
Fix comments and command syntax in QemuImg.java
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e4e8088 commit eef39c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu

‎plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public enum BitmapOperation {
132132
public QemuImg(final long timeout, final boolean skipZeroIfSupported, final boolean noCache) throws LibvirtException {
133133
if (skipZeroIfSupported) {
134134
final Script s = new Script(_qemuImgPath, timeout);
135-
s.add("convert --help");
135+
s.add("convert", "--help");
136136

137137
final OutputInterpreter.AllLinesParser parser = new OutputInterpreter.AllLinesParser();
138138
final String result = s.execute(parser);
@@ -913,7 +913,7 @@ public void setSkipTargetVolumeCreation(boolean skipTargetVolumeCreation) {
913913
public boolean supportsImageFormat(QemuImg.PhysicalDiskFormat format) {
914914
// qemu-img create -f $format -o help
915915
// - prints supported format options with rc=0 on known format, and
916-
// - error message with rc=1 on unsupported formet
916+
// - error message with rc=1 on unsupported format
917917
final Script createProbe = new Script(_qemuImgPath, timeout);
918918
createProbe.add("create", "-f", format.toString(), "-o", "help");
919919
String createProbeResult = createProbe.execute(new OutputInterpreter.AllLinesParser());

0 commit comments

Comments
 (0)