修改删除brick提示错误的bug。

web_backend_develope
chenlw 9 years ago
parent cc7749b749
commit 7a31b17c3b

@ -239,14 +239,13 @@ public class SetVolume {
log.info("删除命令执行完毕"); log.info("删除命令执行完毕");
// 删除成功的返回信息是“volume remove-brick: success” // 删除成功的返回信息是“volume remove-brick: success”
if (reStrings.get(0).contains("volume remove-brick: success")) { if (reStrings.get(0).contains("success")) {
{ {
log.info("删除brick成功"); log.info("删除brick成功");
return 1; return 1;
} }
} else { } else {
log.error("3305 remove brick failed,please check the system"); log.error("3305 remove brick failed,please check the system");
return -5; return -5;
} }

Loading…
Cancel
Save