-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Version 1.11.17 and above breaks EC2 describe volumes with JSON input #2452
Labels
bug
This issue is a bug.
Comments
Yeah this looks related to the issue you linked, but is a regression specifically for |
JordonPhillips
added a commit
to JordonPhillips/aws-cli
that referenced
this issue
Mar 27, 2017
Resolves aws#2452 Fixes a bug where cli json input would get processed after ec2 auto pagination injection. This was due to a subtle behavior of the event system. A handler registered at the top level without any delimiters will always be called *after* any events registered that do have delimiters regarless of when or how they were registered. The handler for --cli-input-json was registered against 'calling-command', and the handler for the ec2 pagination injection was registered against 'calling-command.ec2.operation-name'. So then even though the ec2 pagination injection was using register_last, it was being called first. The solution is to use 'calling-command.*' instead for the event that --cli-input-json is registered against. This puts it in the same pool as the other delimited handlers. This had the potential to break other handlers depending on the existing ordering, but there were very few registered to that event. Running the tests revealed no issues, however.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related Issue: #1976
JSON File:
Command:
Error Message:
OS Release:
Works:
Breaks:
The text was updated successfully, but these errors were encountered: