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 2019/11/06 12:34:30 UTC
[GitHub] [airflow] feluelle commented on a change in pull request #6473:
[AIRFLOW-5819] Update AWSBatchOperator default value
feluelle commented on a change in pull request #6473: [AIRFLOW-5819] Update AWSBatchOperator default value
URL: https://github.com/apache/airflow/pull/6473#discussion_r343069637
##########
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:
```suggestion
self.array_properties = array_properties or {}
```
Why not just like that?
----------------------------------------------------------------
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
With regards,
Apache Git Services