daesung9511 commented on code in PR #70454:
URL: https://github.com/apache/airflow/pull/70454#discussion_r3651972516
##########
providers/google/src/airflow/providers/google/cloud/operators/compute.py:
##########
@@ -1232,16 +1232,7 @@ def __init__(
) -> None:
self.body_patch = body_patch
self.request_id = request_id
- self._field_validator = None # GcpBodyFieldValidator | None
- if "name" not in self.body_patch:
- raise AirflowException(
- f"The body '{body_patch}' should contain at least name for the
new operator "
- f"in the 'name' field"
- )
- if validate_body:
- self._field_validator = GcpBodyFieldValidator(
- GCE_INSTANCE_TEMPLATE_VALIDATION_PATCH_SPECIFICATION,
api_version=api_version
- )
+ self.validate_body = validate_body
self._field_sanitizer =
GcpBodyFieldSanitizer(GCE_INSTANCE_FIELDS_TO_SANITIZE)
Review Comment:
Yes, I removed it in the latest commit.
--
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]