add more custom prefixes for temporary directories
This commit is contained in:
@@ -194,7 +194,7 @@ def generate_facts(
|
||||
prompt: Callable[[str, str], str] = prompt_func,
|
||||
) -> bool:
|
||||
was_regenerated = False
|
||||
with TemporaryDirectory() as tmp:
|
||||
with TemporaryDirectory(prefix="facts-generate-") as tmp:
|
||||
tmpdir = Path(tmp)
|
||||
|
||||
for machine in machines:
|
||||
|
||||
@@ -19,7 +19,7 @@ def upload_secrets(machine: Machine) -> None:
|
||||
if secret_facts_store.update_check():
|
||||
log.info("Secrets already up to date")
|
||||
return
|
||||
with TemporaryDirectory() as tempdir:
|
||||
with TemporaryDirectory(prefix="facts-upload-") as tempdir:
|
||||
secret_facts_store.upload(Path(tempdir))
|
||||
host = machine.target_host
|
||||
|
||||
|
||||
Reference in New Issue
Block a user