Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Handle special characters in role name #43

Closed
mriehl opened this issue Jan 19, 2016 · 2 comments
Closed

Handle special characters in role name #43

mriehl opened this issue Jan 19, 2016 · 2 comments

Comments

@mriehl
Copy link

mriehl commented Jan 19, 2016

» afpv2 show account-name role-namé
Password for mriehl: 
Traceback (most recent call last):
  File "/usr/local/bin/afpv2", line 9, in <module>
    load_entry_point('afp-cli==1.3.1.post166', 'console_scripts', 'afpv2')()
  File "/usr/local/lib/python2.7/dist-packages/afp_cli/cliv2.py", line 59, in main
    unprotected_main()
  File "/usr/local/lib/python2.7/dist-packages/afp_cli/cliv2.py", line 107, in unprotected_main
    aws_credentials = get_aws_credentials(federation_client, account, role)
  File "/usr/local/lib/python2.7/dist-packages/afp_cli/cli_functions.py", line 60, in get_aws_credentials
    aws_credentials = federation_client.get_aws_credentials(account, role)
  File "/usr/local/lib/python2.7/dist-packages/afp_cli/client.py", line 49, in get_aws_credentials
    role))
  File "/usr/local/lib/python2.7/dist-packages/afp_cli/client.py", line 38, in call_api
    self.api_url, url_suffix, api_result.json()['message']))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 78: ordinal not in range(128)
This was referenced Jan 20, 2016
@schlomo
Copy link
Contributor

schlomo commented Jan 26, 2016

This is an enhancement till we encounter the wirst role with such a name.

karolyi added a commit that referenced this issue Jan 26, 2016
Issue fix #42 & #43

great work! (taps self on the back)
@karolyi
Copy link
Contributor

karolyi commented Jan 26, 2016

Done in #47

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants