volume路径为空时,修改

web_backend_develope
chenlw 9 years ago
parent 312eeeecda
commit 83a10a1f45

@ -84,9 +84,11 @@ public class ThreadVolume extends Thread {
List<String> path = volumeInfo List<String> path = volumeInfo
.getVolumeMountPoint(volumeName); .getVolumeMountPoint(volumeName);
// 默认加载第一个路径 // 默认加载第一个路径
for (String one : path) { if (null != path) {
if (!one.contains("df")) { for (String one : path) {
volume.setPath(one); if (!one.contains("df")) {
volume.setPath(one);
}
} }
} }
if (null == volume.getPath()) { if (null == volume.getPath()) {

Loading…
Cancel
Save