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 2020/11/27 21:45:50 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #12660: Add upgrade check rule for unrecognized arguments to Operators

kaxil commented on a change in pull request #12660:
URL: https://github.com/apache/airflow/pull/12660#discussion_r531792578



##########
File path: airflow/contrib/kubernetes/pod.py
##########
@@ -250,8 +250,8 @@ def _extract_ports(ports):
 
 def _extract_resources(resources):
     if isinstance(resources, k8s.V1ResourceRequirements):
-        requests = resources.requests
-        limits = resources.limits
+        requests = resources.requests or {}
+        limits = resources.limits or {}

Review comment:
       fixed




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org