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

Commit

Permalink
default empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
goddenrich committed Sep 23, 2019
1 parent 4ea6921 commit 7ce0198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def load_config(self, path):
self.config_merged = ConfigNode(path, config_merged, path)

for item in ('clusters', 'contexts', 'users'):
self._merge(item, config[item], path)
self._merge(item, config.get(item, {}), path)
self.config_files[path] = config

def _merge(self, item, add_cfg, path):
Expand Down

0 comments on commit 7ce0198

Please sign in to comment.