Skip to content

Commit 8eb2f87

Browse files
author
Rakshil Modi
committed
Format display message
1 parent b471553 commit 8eb2f87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

awscli/customizations/s3/s3handler.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,11 +860,16 @@ def _report_failure(self, fileinfo, exception):
860860
)
861861
)
862862

863+
def _format_s3_path(self, path):
864+
if path.startswith('s3://'):
865+
return path
866+
return 's3://' + path
867+
863868
def _format_src_dest(self, fileinfo):
864869
src = fileinfo.src
865870
if hasattr(fileinfo, 'version_id') and fileinfo.version_id:
866871
src = f"{src} (version {fileinfo.version_id})"
867-
return src, None
872+
return self._format_s3_path(src), None
868873

869874
def _report_error(self, fileinfo, error_message):
870875
src, _ = self._format_src_dest(fileinfo)

0 commit comments

Comments
 (0)