Skip to content

Commit

Permalink
[AIRFLOW-4247] Template Region on the DataprocOperators (apache#5046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko authored and ashb committed Apr 5, 2019
1 parent 04ce155 commit 4991c34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions airflow/contrib/operators/dataproc_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class DataProcPigOperator(BaseOperator):
an 8 character random string.
:vartype dataproc_job_id: str
"""
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
template_ext = ('.pg', '.pig',)
ui_color = '#0273d4'

Expand Down Expand Up @@ -834,7 +834,7 @@ class DataProcHiveOperator(BaseOperator):
an 8 character random string.
:vartype dataproc_job_id: str
"""
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
template_ext = ('.q',)
ui_color = '#0273d4'

Expand Down Expand Up @@ -933,7 +933,7 @@ class DataProcSparkSqlOperator(BaseOperator):
an 8 character random string.
:vartype dataproc_job_id: str
"""
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['query', 'variables', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
template_ext = ('.q',)
ui_color = '#0273d4'

Expand Down Expand Up @@ -1040,7 +1040,7 @@ class DataProcSparkOperator(BaseOperator):
:vartype dataproc_job_id: str
"""

template_fields = ['arguments', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['arguments', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
ui_color = '#0273d4'

@apply_defaults
Expand Down Expand Up @@ -1148,7 +1148,7 @@ class DataProcHadoopOperator(BaseOperator):
:vartype dataproc_job_id: str
"""

template_fields = ['arguments', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['arguments', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
ui_color = '#0273d4'

@apply_defaults
Expand Down Expand Up @@ -1256,7 +1256,7 @@ class DataProcPySparkOperator(BaseOperator):
:vartype dataproc_job_id: str
"""

template_fields = ['arguments', 'job_name', 'cluster_name', 'dataproc_jars']
template_fields = ['arguments', 'job_name', 'cluster_name', 'region', 'dataproc_jars']
ui_color = '#0273d4'

@staticmethod
Expand Down

0 comments on commit 4991c34

Please sign in to comment.