turbaszek commented on a change in pull request #10403:
URL: https://github.com/apache/airflow/pull/10403#discussion_r482900596
##########
File path: airflow/providers/google/cloud/operators/dataproc.py
##########
@@ -506,9 +488,12 @@ def __init__( # pylint: disable=too-many-arguments
del kwargs['params']
# Create cluster object from kwargs
- kwargs['region'] = region
- kwargs['project_id'] = project_id
- cluster = ClusterGenerator(**kwargs).make()
+ if project_id is None:
+ raise AirflowException(
+ "project_id argument is required when building cluster
from keywords parameters"
Review comment:
That should not be problem when migrating from 1.10.X becaue it should
be in kwargs
https://github.com/apache/airflow/blob/827a717fecc675b4d58fa202be003dee8e423632/airflow/contrib/operators/dataproc_operator.py#L192-L193
----------------------------------------------------------------
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:
[email protected]