Skip to content

Commit cea613c

Browse files
committed
Change literal '/' string to File.separator
1 parent 82ab74b commit cea613c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,10 @@ private KVMPhysicalDisk createPhysicalDiskByQemuImg(String name, KVMStoragePool
967967
QemuImgFile destFile;
968968

969969
if (StoragePoolType.RBD.equals(pool.getType())) {
970-
volPath = pool.getSourceDir() + "/" + name;
970+
volPath = pool.getSourceDir() + File.separator + name;
971971
destFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(pool, volPath));
972972
} else {
973-
volPath = pool.getLocalPath() + "/" + name;
973+
volPath = pool.getLocalPath() + File.separator + name;
974974
destFile = new QemuImgFile(volPath);
975975
}
976976

0 commit comments

Comments
 (0)