Skip to content

Commit b518129

Browse files
committed
Remember to unset node port
1 parent 2ebd13b commit b518129

File tree

1 file changed

+1
-3
lines changed
  • src/main/java/oracle/kubernetes/operator

1 file changed

+1
-3
lines changed

src/main/java/oracle/kubernetes/operator/Main.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,7 @@ public NextAction apply(Packet packet) {
10371037
p.put(ProcessingConstants.SERVER_NAME, ssi.serverConfig.getName());
10381038
p.put(ProcessingConstants.PORT, ssi.serverConfig.getListenPort());
10391039
ServerStartup ss = ssi.serverStartup;
1040-
if (ss != null) {
1041-
p.put(ProcessingConstants.NODE_PORT, ss.getNodePort());
1042-
}
1040+
p.put(ProcessingConstants.NODE_PORT, ss != null ? ss.getNodePort() : null);
10431041

10441042
startDetails.add(new StepAndPacket(bringManagedServerUp(ssi, null), p));
10451043
}

0 commit comments

Comments
 (0)