Skip to content

Commit fce6e14

Browse files
committed
Change literal '/' string to File.separator
1 parent 83ef09e commit fce6e14

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
@@ -1068,10 +1068,10 @@ private KVMPhysicalDisk createPhysicalDiskByQemuImg(String name, KVMStoragePool
10681068
QemuImgFile destFile;
10691069

10701070
if (StoragePoolType.RBD.equals(pool.getType())) {
1071-
volPath = pool.getSourceDir() + "/" + name;
1071+
volPath = pool.getSourceDir() + File.separator + name;
10721072
destFile = new QemuImgFile(KVMPhysicalDisk.RBDStringBuilder(pool, volPath));
10731073
} else {
1074-
volPath = pool.getLocalPath() + "/" + name;
1074+
volPath = pool.getLocalPath() + File.separator + name;
10751075
destFile = new QemuImgFile(volPath);
10761076
}
10771077

0 commit comments

Comments
 (0)