mirror of https://github.com/apache/cloudstack.git
bug 11759: fedora still uses cloud-qemu-img to take snapshot
status 11759: resolved fixed
This commit is contained in:
parent
067e3f9fbf
commit
7a1a844e6b
|
|
@ -3596,7 +3596,13 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
private boolean isSnapshotSupported() {
|
||||
String result = executeBashScript("qemu-img --help|grep convert |grep snapshot");
|
||||
if (result != null) {
|
||||
return false;
|
||||
/*For fedora*/
|
||||
File qemu = new File("/usr/bin/cloud-qemu-img");
|
||||
if (qemu.exists()) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue