Skip to content

Commit

Permalink
Fix profile prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilJed committed Mar 25, 2024
1 parent bda0b0c commit 1a96edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awssso
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():
global VERBOSE_MODE
VERBOSE_MODE = args.verbose

profile = _add_prefix(args.profile if args.profile else _select_profile())
profile = args.profile if args.profile else _select_profile()

if args.login:
_spawn_cli_for_auth(profile, args.docker)
Expand All @@ -101,7 +101,7 @@ def _set_profile_credentials(profile_name, use_default=False):
def _get_aws_profile(profile_name):
_print_msg(f'\nReading profile: [{profile_name}]')
config = _read_config(AWS_CONFIG_PATH)
profile_opts = config.items(profile_name)
profile_opts = config.items(_add_prefix(profile_name))
profile = dict(profile_opts)
return profile

Expand Down

0 comments on commit 1a96edb

Please sign in to comment.