Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix folder_dir not showing on logs for DbtDocsS3LocalOperator #856

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cosmos/operators/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@
)

for filename in self.required_files:
logger.info("Uploading %s to %s", filename, f"s3://{self.bucket_name}/{filename}")

key = f"{self.folder_dir}/{filename}" if self.folder_dir else filename
s3_path = f"s3://{self.bucket_name}/{key}"
logger.info("Uploading %s to %s", filename, s3_path)

Check warning on line 579 in cosmos/operators/local.py

View check run for this annotation

Codecov / codecov/patch

cosmos/operators/local.py#L578-L579

Added lines #L578 - L579 were not covered by tests

hook.load_file(
filename=f"{target_dir}/{filename}",
Expand Down
Loading