Skip to content

Commit 148d834

Browse files
committed
Ensure proxy settings are always applied when enabled
1 parent b010e7b commit 148d834

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ocp_resources/resource.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ def get_client(
123123
raise ValueError(
124124
"Proxy configuration is enabled but neither HTTPS_PROXY nor HTTP_PROXY environment variables are set."
125125
)
126-
if not kwargs.get("client_configuration"):
127-
client_configuration.proxy = proxy
126+
client_configuration.proxy = proxy
128127

129128
return kubernetes.dynamic.DynamicClient(
130129
client=kubernetes.config.new_client_from_config(

0 commit comments

Comments
 (0)