Skip to content

Commit

Permalink
vagrant download: Fix 'invalid cross-device link'
Browse files Browse the repository at this point in the history
If the unpacked directory is on a different device from the download
destination (happens on tests if the code is in encrypted home),
rename()ing the file would fail. Use move() instead.
  • Loading branch information
remram44 committed Jun 23, 2021
1 parent ee2838b commit d481146
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def download(self, remote_path, local_path):

# Move file to final destination
try:
ltemp.rename(local_path)
ltemp.move(local_path)
except OSError as e:
logger.critical("Couldn't download output file: %s\n%s",
remote_path, str(e))
Expand Down

0 comments on commit d481146

Please sign in to comment.