Skip to content

Commit e992801

Browse files
authored
Merge pull request #700 from mplsgrant/2025-03-auth-check-for-None
user auth: check for None, replace with []
2 parents 4d11ce3 + 952bfff commit e992801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/warnet/users.py

+2
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 category in base_config and 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)