volume路径为空时,修改

web_backend_develope
chenlw 9 years ago
parent 312eeeecda
commit 83a10a1f45

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

Loading…
Cancel
Save