molcay commented on code in PR #38673:
URL: https://github.com/apache/airflow/pull/38673#discussion_r1584459964


##########
airflow/providers/google/cloud/operators/automl.py:
##########
@@ -246,7 +306,7 @@ def execute(self, context: Context):
             metadata=self.metadata,
         )
         project_id = self.project_id or hook.project_id
-        if project_id:
+        if project_id and self.model_id:

Review Comment:
   Since we introduce the `endpoint_id`, `model_id` is optional right now. This 
check is to ensure the `model_id` is given. Because `AutoMLModelPredictLink` 
can be used only for `model_id` case



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to