Skip to content

Commit dce1cef

Browse files
committed
replace put with remove in Main.dispatchServiceWatch method
1 parent 2fc29b2 commit dce1cef

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ private static void dispatchServiceWatch(Watch.Response<V1Service> item) {
891891
case "DELETED":
892892
if (sko != null) {
893893
if (channelName != null) {
894-
V1Service oldService = sko.getChannels().put(channelName, null);
894+
V1Service oldService = sko.getChannels().remove(channelName);
895895
if (oldService != null) {
896896
// Service was deleted, but sko still contained a non-null entry
897897
LOGGER.info(

0 commit comments

Comments
 (0)