Skip to content

Commit 0fd6b26

Browse files
committed
check for None, replace with []
1 parent 6626ec1 commit 0fd6b26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/warnet/users.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def auth(auth_config):
4141
if not is_first_config:
4242
for category in ["clusters", "users", "contexts"]:
4343
if category in auth_config:
44+
if not base_config[category]:
45+
base_config[category] = []
4446
merge_entries(category, base_config, auth_config)
4547

4648
new_current_context = auth_config.get("current-context")

0 commit comments

Comments
 (0)