Skip to content

Commit

Permalink
Merge pull request #876 from MissionCriticalCloud/fix/offline-migrate…
Browse files Browse the repository at this point in the history
…-qcow-check

Remove check for QCOW2 extension
  • Loading branch information
ddegoede authored Dec 11, 2019
2 parents 6ea7273 + cf1b5b7 commit 092753b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ public KvmPhysicalDisk copyPhysicalDisk(final KvmPhysicalDisk disk, final String
final Map<String, String> info = qemu.info(srcFile);
final String backingFile = info.get("backing_file");
// qcow2 templates can just be copied into place
if (sourceFormat.equals(destFormat) && backingFile == null && sourcePath.endsWith(".qcow2")) {
if (sourceFormat.equals(destFormat) && backingFile == null) {
final String result = Script.runSimpleBashScript("cp -f " + sourcePath + " " + destPath, timeout);
if (result != null) {
throw new CloudRuntimeException("Failed to create disk: " + result);
Expand Down

0 comments on commit 092753b

Please sign in to comment.