Skip to content

Commit b648cb9

Browse files
committed
fix load_config unexpected keyword argument
1 parent 5a96bbc commit b648cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kubernetes/base/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def load_config(**kwargs):
3434
load_incluster_config functions.
3535
"""
3636
if "kube_config_path" in kwargs.keys() or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
37+
kwargs["config_file"] = kwargs.pop("kube_config_path", None)
3738
load_kube_config(**kwargs)
3839
else:
3940
print(

0 commit comments

Comments
 (0)