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

aws ec2 wait password-data-available does not work #1252

Closed
jamesls opened this issue Mar 30, 2015 · 1 comment
Closed

aws ec2 wait password-data-available does not work #1252

jamesls opened this issue Mar 30, 2015 · 1 comment
Labels
bug This issue is a bug.

Comments

@jamesls
Copy link
Member

jamesls commented Mar 30, 2015

You'll get an error because of a JMESPath type error.

$ aws ec2 wait password-data-available --instance-id i-id

In function length(), invalid type for value: None, expected one of: ['string', 'array', 'object'], received: "string"

This is because we're parsing this XML response:

<?xml version="1.0" encoding="UTF-8"?>
<GetPasswordDataResponse xmlns="http://ec2.amazonaws.com/doc/2014-10-01/">
    <requestId>id</requestId>
    <instanceId>i-id</instanceId>
    <timestamp>2015-03-30T20:53:21.000Z</timestamp>
    <passwordData/>
</GetPasswordDataResponse>

As:

{
    "InstanceId": "i-id",
    "Timestamp": "2015-03-30T20:53:21.000Z",
    "PasswordData": null
}

Whereas the waiter is assuming this is parsed with PasswordData being an empty string.

@jamesls jamesls added bug This issue is a bug. confirmed labels Mar 30, 2015
danielgtaylor added a commit to danielgtaylor/botocore that referenced this issue Mar 31, 2015
This changes the output of the XML-based parsers and adds protocol tests for
each of `query`, `ec2`, and `rest-xml`. This is required to support new
waiters as in aws/aws-cli#1252.
danielgtaylor added a commit to danielgtaylor/botocore that referenced this issue Apr 7, 2015
This changes the output of the XML-based parsers and adds protocol tests for
each of `query`, `ec2`, and `rest-xml`. This is required to support new
waiters as in aws/aws-cli#1252.
@jamesls
Copy link
Member Author

jamesls commented Apr 14, 2015

Should be fixed now via boto/botocore#506

@jamesls jamesls closed this as completed Apr 14, 2015
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