uranusjr commented on code in PR #37659:
URL: https://github.com/apache/airflow/pull/37659#discussion_r1501378093
##########
airflow/providers/google/cloud/operators/compute.py:
##########
@@ -161,9 +163,10 @@ def __init__(
self._field_validator = GcpBodyFieldValidator(
GCE_INSTANCE_TEMPLATE_VALIDATION_PATCH_SPECIFICATION,
api_version=api_version
)
+ resource_id = self.resource_id # this line for
validate-operators-init pre-commit
Review Comment:
It’s likely better to change all `self.resource_id` assignments to use this
local variable, and pass it to `super().__init__`.
--
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]