Skip to content

Commit 3a16770

Browse files
apply validaiton to profile set options.
1 parent 4cb2a66 commit 3a16770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/planet_auth_utils/commands/cli/profile_cmd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def _dialogue_choose_auth_profile():
7070
filtered_builtin_profile_names.append(profile_name)
7171

7272
filtered_builtin_profile_names.sort()
73-
sorted_on_disk_profile_names = Profile.list_on_disk_profiles().copy()
73+
74+
# Loading filters out invalid profile configurations that may be on disk
75+
sorted_on_disk_profile_names = list(_load_all_on_disk_profiles().keys())
7476
sorted_on_disk_profile_names.sort()
7577
all_profile_names = filtered_builtin_profile_names + sorted_on_disk_profile_names
7678
choices = []

0 commit comments

Comments
 (0)