parent
8aa7985824
commit
32627345ee
|
@ -139,8 +139,7 @@ public class DisposeNodeManagerImpl implements DisposeNodeManager {
|
|||
|
||||
if (dev.getType() == null || dev.getIpAddr() == null
|
||||
|| dev.getIpAddr().length() == 0
|
||||
|| !IPAddrType.isIpAddress(dev.getIpAddr())
|
||||
|| dev.getUrl() == null || dev.getUrl().length() == 0) {
|
||||
|| !IPAddrType.isIpAddress(dev.getIpAddr())) {
|
||||
log.error("Add device error: type {}, ip {} url {}", dev.getType(), dev.getIpAddr(), dev.getUrl());
|
||||
return new MulReturnType<>(ErrorCode.ERR_PARAMS, String.valueOf(-1));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue