SameerMesiah97 commented on code in PR #61830:
URL: https://github.com/apache/airflow/pull/61830#discussion_r2824161404
##########
providers/google/src/airflow/providers/google/cloud/operators/compute.py:
##########
@@ -206,54 +211,123 @@ def _validate_all_body_fields(self) -> None:
if self._field_validator:
self._field_validator.validate(self.body)
+ def _extract_machine_type(self, value: str | None) -> str | None:
+ if not value:
+ return None
+ return value.split("/")[-1]
+
+ def _detect_instance_drift(self, existing: Instance) -> dict[str, Any]:
+ """Log machine type differences between the existing instance and the
requested body."""
Review Comment:
I have changed it to:
`Detect machine type differences between the existing instance and the
requested body.`
This should be more accurate.
--
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]