fix: add missing _staging_in helper + STAGING_IN constant
This commit is contained in:
parent
63659e4f93
commit
e53d05f7dc
1 changed files with 4 additions and 0 deletions
|
|
@ -30,8 +30,12 @@ from converter import extract_if_needed, discover_disk, detect_efi
|
||||||
|
|
||||||
logger = logging.getLogger("backend.provisioner")
|
logger = logging.getLogger("backend.provisioner")
|
||||||
|
|
||||||
|
STAGING_IN = Path("/mnt/converter/in")
|
||||||
STAGING_OUT = Path("/mnt/converter/out")
|
STAGING_OUT = Path("/mnt/converter/out")
|
||||||
|
|
||||||
|
def _staging_in(session_id: str = "") -> Path:
|
||||||
|
return STAGING_IN / session_id if session_id else STAGING_IN
|
||||||
|
|
||||||
def _staging_out(session_id: str = "") -> Path:
|
def _staging_out(session_id: str = "") -> Path:
|
||||||
return STAGING_OUT / session_id if session_id else STAGING_OUT
|
return STAGING_OUT / session_id if session_id else STAGING_OUT
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue