mirror of https://github.com/apache/cloudstack.git
Minor Boolean expression simplification
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
74a3cb4d5e
commit
d6a6e8dfa5
|
|
@ -310,11 +310,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
|||
throw new InternalErrorException("volume:" + srcPath + " is not exits");
|
||||
}
|
||||
String result = Script.runSimpleBashScript("cp " + srcPath + " " + destPath + File.separator + volumeName, timeout);
|
||||
if (result != null) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return result == null;
|
||||
}
|
||||
|
||||
public LibvirtStoragePoolDef getStoragePoolDef(Connect conn, StoragePool pool) throws LibvirtException {
|
||||
|
|
|
|||
Loading…
Reference in New Issue