Skip to content

Commit

Permalink
file_uploader add more log
Browse files Browse the repository at this point in the history
  • Loading branch information
squirrelsc committed Nov 3, 2023
1 parent 63cc8a4 commit b2a3268
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lisa/transformers/file_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ def _internal_run(self) -> Dict[str, Any]:
mkdir.create_directory(runbook.destination)

for name in runbook.files:
self._log.debug(f"uploading file {name}")
copy.copy_to_remote(
PurePath(runbook.source) / name, PurePath(runbook.destination)
)
local_path = PurePath(runbook.source) / name
remote_path = PurePath(runbook.destination)
self._log.debug(f"uploading file from '{local_path}' to '{remote_path}'")

copy.copy_to_remote(local_path, remote_path)
uploaded_files.append(name)

result[UPLOADED_FILES] = uploaded_files
Expand Down

0 comments on commit b2a3268

Please sign in to comment.