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

Commit 7ce0198

Browse files
committed
default empty dict
1 parent 4ea6921 commit 7ce0198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/kube_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def load_config(self, path):
586586
self.config_merged = ConfigNode(path, config_merged, path)
587587

588588
for item in ('clusters', 'contexts', 'users'):
589-
self._merge(item, config[item], path)
589+
self._merge(item, config.get(item, {}), path)
590590
self.config_files[path] = config
591591

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

0 commit comments

Comments
 (0)