Skip to content

Commit

Permalink
Fix file path in generate pipeline message function
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrous committed Aug 14, 2023
1 parent 4fda60b commit 82a1e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdc_aws_utils/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def generate_file_pipeline_message(file_path: str, alert_type: Optional[str] = N
Function to generate file pipeline message
"""

if "/" in file_path:
file_path = file_path.split("/")[-1]

if alert_type != "delete":
# Get the file name
alert = {
Expand Down
1 change: 1 addition & 0 deletions test_file_manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manifest content

0 comments on commit 82a1e97

Please sign in to comment.