Skip to content

Commit

Permalink
Create temp dir automatically, instead of complaining
Browse files Browse the repository at this point in the history
Fixes #39 requested by @vilitux.
  • Loading branch information
wdoekes committed May 11, 2022
1 parent ff8ab67 commit 6935ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxmove
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,9 @@ class ProxmoxStorage(object):
raise NotImplementedError('subclasses need to implement this')

def check_prerequisite_paths(self):
assert self.temp and self.temp.startswith('/'), self.temp
try:
self.ssh_command(['test', '-d', self.temp])
self.ssh_command(['mkdir', '-p', self.temp])
except subprocess.CalledProcessError:
raise PrepareError(
'temp dir {!r} on storage {!r} does not exist; '
Expand Down

0 comments on commit 6935ecf

Please sign in to comment.