Skip to content

Commit

Permalink
fix assignment of templated field in constructor (#36603)
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 committed Jan 13, 2024
1 parent a912948 commit 8e6bfc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airflow/providers/google/cloud/transfers/sftp_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def __init__(
super().__init__(**kwargs)

self.source_path = source_path
self.destination_path = self._set_destination_path(destination_path)
self.destination_bucket = self._set_bucket_name(destination_bucket)
self.destination_path = destination_path
self.destination_bucket = destination_bucket
self.gcp_conn_id = gcp_conn_id
self.mime_type = mime_type
self.gzip = gzip
Expand All @@ -108,6 +108,8 @@ def __init__(
self.sftp_prefetch = sftp_prefetch

def execute(self, context: Context):
self.destination_path = self._set_destination_path(self.destination_path)
self.destination_bucket = self._set_bucket_name(self.destination_bucket)
gcs_hook = GCSHook(
gcp_conn_id=self.gcp_conn_id,
impersonation_chain=self.impersonation_chain,
Expand Down

0 comments on commit 8e6bfc2

Please sign in to comment.