Skip to content

Commit c5d83b4

Browse files
author
Oleg Kachur
committed
Fix init validation in CloudDataTransferServiceCreateJobOperator
- Move validation call - Update issue tracking file Rel issue: apache#70296
1 parent d8d7864 commit c5d83b4

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎providers/google/src/airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ def __init__(
264264
self.api_version = api_version
265265
self.project_id = project_id
266266
self.google_impersonation_chain = google_impersonation_chain
267-
self._validate_inputs()
268267

269268
def _validate_inputs(self) -> None:
270269
TransferJobValidator(body=self.body).validate_body()
271270

272271
def execute(self, context: Context) -> dict:
272+
self._validate_inputs()
273273
TransferJobPreprocessor(body=self.body, aws_conn_id=self.aws_conn_id).process_body()
274274
hook = CloudDataTransferServiceHook(
275275
api_version=self.api_version,

‎scripts/ci/prek/validate_operators_init_exemptions.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ providers/amazon/src/airflow/providers/amazon/aws/operators/neptune.py::NeptuneS
1010
providers/amazon/src/airflow/providers/amazon/aws/transfers/gcs_to_s3.py::GCSToS3Operator
1111
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/pod.py::KubernetesPodOperator
1212
providers/google/src/airflow/providers/google/cloud/operators/cloud_build.py::CloudBuildCreateBuildOperator
13-
providers/google/src/airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py::CloudDataTransferServiceCreateJobOperator
1413
providers/google/src/airflow/providers/google/cloud/operators/dataproc.py::DataprocCreateClusterOperator
1514
providers/google/src/airflow/providers/google/cloud/operators/dataproc.py::DataprocSubmitJobOperator
1615
providers/google/src/airflow/providers/google/cloud/operators/functions.py::CloudFunctionDeployFunctionOperator

0 commit comments

Comments
 (0)