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
.getVolumeMountPoint(volumeName);
// 默认加载第一个路径
for (String one : path) {
if (!one.contains("df")) {
volume.setPath(one);
if (null != path) {
for (String one : path) {
if (!one.contains("df")) {
volume.setPath(one);
}
}
}
if (null == volume.getPath()) {

Loading…
Cancel
Save