We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda0b0c commit 1a96edbCopy full SHA for 1a96edb
awssso
@@ -79,7 +79,7 @@ def main():
79
global VERBOSE_MODE
80
VERBOSE_MODE = args.verbose
81
82
- profile = _add_prefix(args.profile if args.profile else _select_profile())
+ profile = args.profile if args.profile else _select_profile()
83
84
if args.login:
85
_spawn_cli_for_auth(profile, args.docker)
@@ -101,7 +101,7 @@ def _set_profile_credentials(profile_name, use_default=False):
101
def _get_aws_profile(profile_name):
102
_print_msg(f'\nReading profile: [{profile_name}]')
103
config = _read_config(AWS_CONFIG_PATH)
104
- profile_opts = config.items(profile_name)
+ profile_opts = config.items(_add_prefix(profile_name))
105
profile = dict(profile_opts)
106
return profile
107
0 commit comments