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

Filter do not support spaces #1471

Closed
ghost opened this issue Aug 28, 2015 · 2 comments
Closed

Filter do not support spaces #1471

ghost opened this issue Aug 28, 2015 · 2 comments
Labels
bug This issue is a bug.

Comments

@ghost
Copy link

ghost commented Aug 28, 2015

I updated the aws client to 1.8.0. Now, the script for creating an instance does not work any more.

aws --profile default --region us-west-1 ec2 describe-subnets --filters 'Name=subnet-id,Values=Private A' Name=vpc-id,Values=vpc-MYVPC --query 'Subnets[*].SubnetId' --output=text

The error message is:
Error parsing parameter '--filters': Expected: ',', received: 'A' for input:
Name=subnet-id,Values=Private A
^

So there is a space in the subnet-id and I cannot filter it any more.
The command worked with 1.7.x

@jamesls
Copy link
Member

jamesls commented Aug 28, 2015

Thanks for reporting. We'll get this fixed.

@jamesls jamesls added bug This issue is a bug. accepted labels Aug 28, 2015
@jamesls
Copy link
Member

jamesls commented Aug 28, 2015

Just want to mention that while we will fix the current behavior, the workaround for now is to double quote the value with spaces:

 --filters 'Name=subnet-id,Values="Private A"' Name=vpc-id,Values=vpc-MYVPC 

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

No branches or pull requests

1 participant