Skip to content

Commit be68245

Browse files
profile names are not case sensitive. Avoid silly prompts.
1 parent 393ba36 commit be68245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/planet_auth_utils/commands/cli/prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def prompt_and_change_user_default_profile_if_different(
4444
do_change_default = change_default_selection
4545
else:
4646
do_change_default = False
47-
if saved_profile_name != candidate_profile_name:
47+
if str.lower(saved_profile_name) != str.lower(candidate_profile_name):
4848
# do_change_default = yes_no_dialog(
4949
# title=f'Change user default {EnvironmentVariables.AUTH_PROFILE} saved in {config_file.path()}?',
5050
# text=f'Current value and user default differ.\nDo you want to change the user default {EnvironmentVariables.AUTH_PROFILE} from "{saved_profile_name}" to "{candidate_profile_name}"?',

0 commit comments

Comments
 (0)