feluelle commented on a change in pull request #6473: [AIRFLOW-5819] Update 
AWSBatchOperator default value
URL: https://github.com/apache/airflow/pull/6473#discussion_r343070664
 
 

 ##########
 File path: airflow/contrib/operators/awsbatch_operator.py
 ##########
 @@ -93,7 +93,7 @@ def __init__(self, job_name, job_definition, job_queue, 
overrides, array_propert
         self.job_definition = job_definition
         self.job_queue = job_queue
         self.overrides = overrides
-        self.array_properties = array_properties
+        self.array_properties = array_properties if array_properties is not 
None else {}
 
 Review comment:
   ```python
   >>> a = None or {}
   >>> a
   {}
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to