Skip to content

Commit

Permalink
fix: Fix another location of should upload
Browse files Browse the repository at this point in the history
Signed-off-by: ggydush <[email protected]>
  • Loading branch information
ggydush committed Jun 12, 2024
1 parent f60bda7 commit 9097e69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flytekit/types/file/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ def to_literal(
f" specified. Since a simpler type was specified, we'll skip uploading!"
)
should_upload = False
if ctx.execution_state.is_local_execution:
should_upload = False

# Set the remote destination if one was given instead of triggering a random one below
remote_path = python_val.remote_path or None
Expand Down

0 comments on commit 9097e69

Please sign in to comment.