boto / boto

For the latest version of boto, see https://github.com/boto/boto3 -- Python interface to Amazon Web Services

Home Page:http://docs.pythonboto.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

describe-snapshots doesn't allow for empty values in ~/.aws/config

peteristhegreat opened this issue · comments

This command breaks with my typical ~/.aws/config

aws --profile default --region us-east-1 ec2 describe-snapshots

'str' object has no attribute 'get'

With values in my ~/.aws/config like it fails.

[default]
region = us-east-1
cli_pager =
s3 =
signature_version = s3v4

Note: These blank entries are supported and recommended in other places (or injected by other tools). Not supporting it for some CLI calls feels like a bug.

With simpler values in my ~/.aws/config like it will work without issue (probably any set that doesn't have empty values).

[default]
region = us-east-1

Environment:

aws-cli/2.4.17 Python/3.9.10 Darwin/20.5.0 source/x86_64 prompt/off

I haven't done an exhaustive check for this, but I've ran about 50 other commands since updating my aws-cli version and this is the first one that choked on it.

Thank you for looking at this issue.