You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/12 11:53:42 UTC
[GitHub] [airflow] uranusjr commented on a change in pull request #18797: Update Kubernetes library version and backport pickle-fix for Loggers
uranusjr commented on a change in pull request #18797:
URL: https://github.com/apache/airflow/pull/18797#discussion_r748212235
##########
File path: tests/kubernetes/test_client.py
##########
@@ -63,5 +63,9 @@ def test_disable_verify_ssl(self):
_disable_verify_ssl()
- configuration = Configuration()
+ # Support wide range of kube client libraries
+ if hasattr(Configuration, 'get_default_copy'):
+ configuration = Configuration.get_default_copy()
+ else:
+ configuration = Configuration()
Review comment:
```suggestion
try:
configuration = Configuration.get_default_copy()
except AttributeError:
configuration = Configuration()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org