Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 3ff79da

Browse files
committed
fix cfg is none, load kube config error
Signed-off-by: zhu hui <[email protected]>
1 parent 49ec060 commit 3ff79da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: config/kube_config.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,8 @@ def load_config(self, path):
663663
for item in ('clusters', 'contexts', 'users'):
664664
config_merged[item] = []
665665
self.config_merged = ConfigNode(path, config_merged, path)
666-
667666
for item in ('clusters', 'contexts', 'users'):
668-
self._merge(item, config.get(item, {}), path)
667+
self._merge(item, config.get(item, []) or [], path)
669668
self.config_files[path] = config
670669

671670
def _merge(self, item, add_cfg, path):

0 commit comments

Comments
 (0)