Skip to content

Commit

Permalink
fix: python/aiohttp with verify_ssl=False (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus authored and k8s-ci-robot committed Sep 6, 2018
1 parent 64959e2 commit fa93944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/python-asyncio-rest.py.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
21a22,23
> import asyncio
>
67c69
< ssl_context=ssl_context,
---
> ssl_context=ssl_context if configuration.verify_ssl else None,
81a84,86
> def __del__(self):
> asyncio.ensure_future(self.pool_manager.close())
Expand Down
2 changes: 2 additions & 0 deletions openapi/python-asyncio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ if [ ${PACKAGE_NAME} == "client" ]; then
# workaround https://github.com/swagger-api/swagger-codegen/pull/8204
# + closing session
# + support application/strategic-merge-patch+json
# workaround https://github.com/swagger-api/swagger-codegen/pull/8507
# + aiohttp without verify_ssl
patch "${OUTPUT_DIR}/client/rest.py" "${SCRIPT_ROOT}/python-asyncio-rest.py.patch"

# workaround https://github.com/swagger-api/swagger-codegen/pull/8401
Expand Down

0 comments on commit fa93944

Please sign in to comment.