aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-11-18 14:21:24 -0500
committerGravatar ionite34 <[email protected]>2022-11-18 14:21:24 -0500
commit0a4fe7ee113d43acc0ac3fe705a9b7f94a5b75c3 (patch)
tree023651d4a667b9a24c4ad773d2bcaabe52a4ae21
parentAdd option for use_file (diff)
Fix name assignment
-rw-r--r--snekbox/memfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snekbox/memfs.py b/snekbox/memfs.py
index e5f85aa..f45e37a 100644
--- a/snekbox/memfs.py
+++ b/snekbox/memfs.py
@@ -86,7 +86,7 @@ class MemFS:
with self.assignment_lock:
for _ in range(10):
# Combine PID to avoid collisions with multiple snekbox processes
- if name := f"{PID}-{uuid4()}" not in self.assigned_names:
+ if (name := f"{PID}-{uuid4()}") not in self.assigned_names:
self.path = mount_tmpfs(name, self.instance_size)
self.assigned_names.add(name)
break