vm.create: define tmpdir
This commit is contained in:
parent
b25af9f0f4
commit
966a33e711
@ -45,7 +45,8 @@ class BuildVmTask(BaseTask):
|
||||
vm_config = self.get_vm_create_info(cmds)
|
||||
|
||||
with tempfile.TemporaryDirectory() as tmpdir_:
|
||||
xchg_dir = Path(tmpdir_) / "xchg"
|
||||
tmpdir = Path(tmpdir_)
|
||||
xchg_dir = tmpdir / "xchg"
|
||||
xchg_dir.mkdir()
|
||||
disk_img = f"{tmpdir_}/disk.img"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user