Skip to content

Commit 864aa5f

Browse files
committed
recreate temp dir if it no longer exists
1 parent c4cf0d5 commit 864aa5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ansible_mitogen/runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ def get_temp_dir(self):
358358
return path
359359

360360
if self._temp_dir is None:
361+
# Ensure that the temp directory is 'good' before we try to use it
362+
ansible_mitogen.target.is_good_temp_dir(self.good_temp_dir)
363+
361364
self._temp_dir = tempfile.mkdtemp(
362365
prefix='ansible_mitogen_runner_',
363366
dir=self.good_temp_dir,

0 commit comments

Comments
 (0)