Skip to content

Commit

Permalink
Merge pull request #998 from kyleknap/config-fix
Browse files Browse the repository at this point in the history
Fix wrong use of verify_ssl for configservice
  • Loading branch information
kyleknap committed Nov 12, 2014
2 parents cdd91d3 + ff805ef commit 9913884
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
CHANGELOG
=========


Next Release (TBD)
==================
* bugfix:``aws configservice get-status``: Fix connecting to endpoint without
using ssl.
(`issue 998 <https://github.com/aws/aws-cli/pull/998>`__)
* bugfix:``aws deploy push``: Fix some python compatibility issues
(`issue 1000 <https://github.com/aws/aws-cli/pull/1000>`__)

1.6.1
=====
* feature:``aws deploy``: Adds support for AWS CodeDeploy
Expand Down
2 changes: 1 addition & 1 deletion awscli/customizations/configservice/getstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _run_main(self, parsed_args, parsed_globals):

def _setup_client(self, parsed_globals):
client_args = {
'use_ssl': parsed_globals.verify_ssl,
'verify': parsed_globals.verify_ssl,
'region_name': parsed_globals.region,
'endpoint_url': parsed_globals.endpoint_url
}
Expand Down
2 changes: 1 addition & 1 deletion awscli/customizations/configservice/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _run_main(self, parsed_args, parsed_globals):

def _setup_clients(self, parsed_globals):
client_args = {
'use_ssl': parsed_globals.verify_ssl,
'verify': parsed_globals.verify_ssl,
'region_name': parsed_globals.region
}
self._s3_client = self._session.create_client('s3', **client_args)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/customizations/configservice/test_getstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_create_client(self):
self.cmd._run_main(self.parsed_args, self.parsed_globals)
self.session.create_client.assert_called_with(
'config',
use_ssl=self.parsed_globals.verify_ssl,
verify=self.parsed_globals.verify_ssl,
region_name=self.parsed_globals.region,
endpoint_url=self.parsed_globals.endpoint_url
)
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/customizations/configservice/test_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@ def test_setup_clients(self):
# Check to see that the clients were created correctly
self.session.create_client.assert_any_call(
's3',
use_ssl=self.parsed_globals.verify_ssl,
verify=self.parsed_globals.verify_ssl,
region_name=self.parsed_globals.region,
)
self.session.create_client.assert_any_call(
'sns',
use_ssl=self.parsed_globals.verify_ssl,
verify=self.parsed_globals.verify_ssl,
region_name=self.parsed_globals.region,
)
self.session.create_client.assert_any_call(
'config',
use_ssl=self.parsed_globals.verify_ssl,
verify=self.parsed_globals.verify_ssl,
region_name=self.parsed_globals.region,
endpoint_url=self.parsed_globals.endpoint_url
)
Expand Down

0 comments on commit 9913884

Please sign in to comment.