Skip to content

Commit 1a96edb

Browse files
committed
Fix profile prefixes
1 parent bda0b0c commit 1a96edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awssso

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main():
7979
global VERBOSE_MODE
8080
VERBOSE_MODE = args.verbose
8181

82-
profile = _add_prefix(args.profile if args.profile else _select_profile())
82+
profile = args.profile if args.profile else _select_profile()
8383

8484
if args.login:
8585
_spawn_cli_for_auth(profile, args.docker)
@@ -101,7 +101,7 @@ def _set_profile_credentials(profile_name, use_default=False):
101101
def _get_aws_profile(profile_name):
102102
_print_msg(f'\nReading profile: [{profile_name}]')
103103
config = _read_config(AWS_CONFIG_PATH)
104-
profile_opts = config.items(profile_name)
104+
profile_opts = config.items(_add_prefix(profile_name))
105105
profile = dict(profile_opts)
106106
return profile
107107

0 commit comments

Comments
 (0)