forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
04a7705
commit fd40a77
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"description": "Fixed a bug causing some ec2 commands to fail with an invalid parameter combination error when arguments were supplied via --cli-input-json. Resolves `#2452 <https://github.com/aws/aws-cli/issues/2452>`__", | ||
"category": "ec2", | ||
"type": "bugfix" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters