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/12/02 15:41:43 UTC

[GitHub] [airflow] jedcunningham commented on a change in pull request #19726: Fix Volume/VolumeMount KPO DeprecationWarning

jedcunningham commented on a change in pull request #19726:
URL: https://github.com/apache/airflow/pull/19726#discussion_r761216381



##########
File path: airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py
##########
@@ -77,8 +71,9 @@ def convert_resources(resources) -> k8s.V1ResourceRequirements:
     :return: k8s.V1ResourceRequirements
     """
     if isinstance(resources, dict):
+        from airflow.providers.cncf.kubernetes.backcompat.pod import Resources

Review comment:
       ```suggestion
           from airflow.providers.cncf.kubernetes.backcompat.pod import Resources
           
   ```
   
   This will fix the static check.




-- 
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