-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.2.7: (21 commits) Bumping version to 1.2.7 Update changelog with the latest changes Change mututally to mutually Allow the --protocol option of ec2 create-network-acl-entry command to accept tcp|udp|icmp|all in addition to the numeric protocol numbers. The docs for the command already say it does this but the actual EC2 operation supports only integer values. Fix bug when filtering s3 locations Clean up existing filter unit tests Add unittest for website redirect location Add unit test for recursive download Remove extraneous log statements. Fix an assumption in argprocess.py that all map types will have an enum of possible keys. Also change the import of json to come from the botocore.compat module and also set the object_pairs_hook to use OrderedDict so unit tests can be compared properly. Dependent on boto/botocore#185. Fixes #407. Add tests that verify what ops were called Add a short circuit path for listing a specific s3 object Remove newline between task fail and error messages Add attributes to exception in errorhandler Remove src/dest resource existence check If --private-ip-address is specified with any other options that require the creation of a NetworkInterfaces structure, move the value of --private-ip-address into the NetworkInterfaces structure. Fixes #520. Log CLI/botocore version in the debug logs Add changelog entry for issue 516 Handle a list of strings from a dict in text output Remove tutorial in favor of user guide ...
- Loading branch information
Showing
34 changed files
with
719 additions
and
598 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You | ||
# may not use this file except in compliance with the License. A copy of | ||
# the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
# ANY KIND, either express or implied. See the License for the specific | ||
# language governing permissions and limitations under the License. | ||
""" | ||
This customization allows the user to specify the values "tcp", "udp", | ||
or "icmp" as values for the --protocol parameter. The actual Protocol | ||
parameter of the operation accepts only integer protocol numbers. | ||
""" | ||
|
||
def _fix_args(operation, endpoint, params, **kwargs): | ||
if 'protocol' in params: | ||
if params['protocol'] == 'tcp': | ||
params['protocol'] = '6' | ||
elif params['protocol'] == 'udp': | ||
params['protocol'] = '17' | ||
elif params['protocol'] == 'icmp': | ||
params['protocol'] = '1' | ||
elif params['protocol'] == 'all': | ||
params['protocol'] = '-1' | ||
|
||
|
||
def register_protocol_args(cli): | ||
('before-parameter-build.ec2.RunInstances', _fix_args), | ||
cli.register('before-parameter-build.ec2.CreateNetworkAclEntry', | ||
_fix_args) | ||
|
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
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
Oops, something went wrong.