Open rafilkmp3 opened 6 years ago
This could likely be added as a small if
at the top of the pick_a_role()
function.
https://github.com/cevoaustralia/aws-google-auth/blob/91cb4f764655082631b61d8c1ba07742dbe9f6f0/aws_google_auth/util.py#L18-L19
I think it can be something really simple, like the following. I don't have the time right now to test/make a PR, but this is a start.
if len(roles) == 1:
return roles[0]
hi, when we have only one role to assume the following dialog is prompt. if i press a simple enter without choose 1 I face this error:
Type the number (1 - 1) of the role to assume: