awsume icon indicating copy to clipboard operation
awsume copied to clipboard

fix specifying both role-arn and principal-arn as command-line arguments fails with TypeError

Open Tantalon opened this issue 3 years ago • 2 comments

Fix for #149

  File "/usr/local/lib/python3.9/site-packages/awsume/awsumepy/app.py", line 132, in get_saml_credentials
    principal_plus_role_arn = ','.join(args.role_arn, args.principal_arn)
TypeError: str.join() takes exactly one argument (2 given)

This is the line of code, it's missing brackets: principal_plus_role_arn = ','.join(args.role_arn, args.principal_arn) should be: principal_plus_role_arn = ','.join([args.role_arn, args.principal_arn])

Tantalon avatar May 12 '21 01:05 Tantalon

Good catch! We'll try to merge this and include it along with #148 after we test it a little more internally

Thanks for the PR!

mbarneyjr avatar May 18 '21 17:05 mbarneyjr

Hi @mbarneyjr, any update on the outstanding PRs?

Tantalon avatar Aug 10 '21 12:08 Tantalon

I also ran into this issue and would like to resolve it for a SAML plugin I'm building. Though we probably need a unit test to validate this fully solves the issue.

TheLandolorien avatar Aug 05 '23 14:08 TheLandolorien

cherry-picked the relevant commit and included into https://github.com/trek10inc/awsume/pull/224

mtskillman avatar Aug 07 '23 22:08 mtskillman