{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/1252","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/1252/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/1252/events","html_url":"https://github.com/aws/aws-cli/issues/1252","id":65301498,"number":1252,"title":"aws ec2 wait password-data-available does not work","user":{"login":"jamesls","id":368057,"avatar_url":"https://avatars.githubusercontent.com/u/368057?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesls","html_url":"https://github.com/jamesls","followers_url":"https://api.github.com/users/jamesls/followers","following_url":"https://api.github.com/users/jamesls/following{/other_user}","gists_url":"https://api.github.com/users/jamesls/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesls/subscriptions","organizations_url":"https://api.github.com/users/jamesls/orgs","repos_url":"https://api.github.com/users/jamesls/repos","events_url":"https://api.github.com/users/jamesls/events{/privacy}","received_events_url":"https://api.github.com/users/jamesls/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-cli/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/aws/aws-cli/labels/confirmed","name":"confirmed","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T21:00:04Z","updated_at":"2015-04-14T16:24:14Z","closed_at":"2015-04-14T16:24:14Z","body":"You'll get an error because of a JMESPath type error.\r\n\r\n```\r\n$ aws ec2 wait password-data-available --instance-id i-id\r\n\r\nIn function length(), invalid type for value: None, expected one of: ['string', 'array', 'object'], received: \"string\"\r\n```\r\n\r\nThis is because we're parsing this XML response:\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<GetPasswordDataResponse xmlns=\"http://ec2.amazonaws.com/doc/2014-10-01/\">\r\n    <requestId>id</requestId>\r\n    <instanceId>i-id</instanceId>\r\n    <timestamp>2015-03-30T20:53:21.000Z</timestamp>\r\n    <passwordData/>\r\n</GetPasswordDataResponse>\r\n```\r\n\r\nAs:\r\n\r\n```\r\n{\r\n    \"InstanceId\": \"i-id\",\r\n    \"Timestamp\": \"2015-03-30T20:53:21.000Z\",\r\n    \"PasswordData\": null\r\n}\r\n```\r\n\r\nWhereas the waiter is assuming this is parsed with `PasswordData` being an empty string."},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/92952192","html_url":"https://github.com/aws/aws-cli/issues/1252#issuecomment-92952192","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/1252","id":92952192,"user":{"login":"jamesls","id":368057,"avatar_url":"https://avatars.githubusercontent.com/u/368057?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesls","html_url":"https://github.com/jamesls","followers_url":"https://api.github.com/users/jamesls/followers","following_url":"https://api.github.com/users/jamesls/following{/other_user}","gists_url":"https://api.github.com/users/jamesls/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesls/subscriptions","organizations_url":"https://api.github.com/users/jamesls/orgs","repos_url":"https://api.github.com/users/jamesls/repos","events_url":"https://api.github.com/users/jamesls/events{/privacy}","received_events_url":"https://api.github.com/users/jamesls/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T16:24:14Z","updated_at":"2015-04-14T16:24:14Z","body":"Should be fixed now via boto/botocore#506"}}