Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in case of extra comma #12

Closed
pioneerit opened this issue Jul 20, 2017 · 1 comment
Closed

Error in case of extra comma #12

pioneerit opened this issue Jul 20, 2017 · 1 comment
Labels

Comments

@pioneerit
Copy link
Contributor

Hi and thanks for good tool. It is much better than my custom script.
I had an error today:

  File "/usr/local/bin/aws-google-auth", line 11, in <module>
    load_entry_point('aws-google-auth==0.0.8', 'console_scripts', 'aws-google-auth')()
  File "/Library/Python/2.7/site-packages/aws_google_auth/__init__.py", line 327, in cli
    roles = dict([x.split(',') for x in doc.xpath('//*[@Name = "https://aws.amazon.com/SAML/Attributes/Role"]//text()')])
ValueError: dictionary update sequence element #0 has length 3; 2 is required

So the problem that I had configured:
<role-arn>,<idp-arn>, - for all my roles. And this is a valid description for the AWS. All login operations working fine.

Solution:
In my cases, I updated the Google Attributes for the user - removed the second comma.
I don't know if it is needed somehow checked in this tool, perhaps someone will find the error and apply the same solution.

@nonspecialist
Copy link
Contributor

Should be fixed by PR #16 (fix available in 0.0.10)

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

No branches or pull requests

2 participants