From 1e9d9d9767175dfc4a5644c103ec29f5ab0dfdd7 Mon Sep 17 00:00:00 2001 From: Dmitry Balabka Date: Tue, 20 Feb 2024 17:33:23 +0200 Subject: [PATCH] Fix python-box compatability (#848) (#858) Co-authored-by: Jacob Tomlinson --- dask_kubernetes/operator/networking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dask_kubernetes/operator/networking.py b/dask_kubernetes/operator/networking.py index b7bd300b0..1e9916406 100644 --- a/dask_kubernetes/operator/networking.py +++ b/dask_kubernetes/operator/networking.py @@ -79,7 +79,7 @@ async def get_external_address_for_scheduler_service( def _get_port(service, port_name, is_node_port=False): """NodePort is a special case when we have to use node_port instead of node""" [port] = [ - port.port if not is_node_port else port.node_port + port.port if not is_node_port else port.nodePort for port in service.spec.ports if port.name == service.metadata.name or port.name == port_name ]