Skip to content

Commit 952bfff

Browse files
committed
handle missing key in base config
1 parent 0fd6b26 commit 952bfff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/warnet/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ 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]:
44+
if category in base_config and not base_config[category]:
4545
base_config[category] = []
4646
merge_entries(category, base_config, auth_config)
4747

0 commit comments

Comments
 (0)