Fix minor bug in vm auto installing

This commit is contained in:
Timothyxxx
2024-08-04 23:06:39 +08:00
parent df231889c9
commit a8a60bd9d1

View File

@@ -53,7 +53,7 @@ def generate_new_vm_name(vms_dir):
while True:
attempted_new_name = f"Ubuntu{registry_idx}"
if os.path.exists(
os.path.join(vms_dir, attempted_new_name, attempted_new_name, attempted_new_name + ".vmx")):
os.path.join(vms_dir, attempted_new_name, attempted_new_name + ".vmx")):
registry_idx += 1
else:
return attempted_new_name