Skip to content

Commit ab478a3

Browse files
committed
remove config_file arg check
1 parent 6da7447 commit ab478a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kubernetes/base/config/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def load_config(**kwargs):
3434
load_incluster_config functions.
3535
"""
3636
if "kube_config_path" in kwargs.keys():
37-
kube_config_path = kwargs.pop("kube_config_path", None)
38-
if "config_file" not in kwargs.keys():
39-
kwargs["config_file"] = kube_config_path
37+
kwargs["config_file"] = kwargs.pop("kube_config_path", None)
4038
load_kube_config(**kwargs)
4139
elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
4240
load_kube_config(**kwargs)

0 commit comments

Comments
 (0)