Merge pull request #1514 from nosqlbench/systemid-pr-fix

SystemID fix orElse
This commit is contained in:
Jonathan Shook
2023-09-06 12:58:48 -05:00
committed by GitHub

View File

@@ -74,7 +74,7 @@ public class SystemId {
}).findFirst();
if ( firstInetAddrForInterface.isPresent() &&
firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
firstInetAddrForInterface.get().getHostAddress().contains(".")) return firstInetAddrForInterface;
Optional<InetAddress> firstIpAddress = ifaces.stream()
.flatMap(i4 -> {