Fix minor bug in vm auto installing
This commit is contained in:
@@ -53,7 +53,7 @@ def generate_new_vm_name(vms_dir):
|
|||||||
while True:
|
while True:
|
||||||
attempted_new_name = f"Ubuntu{registry_idx}"
|
attempted_new_name = f"Ubuntu{registry_idx}"
|
||||||
if os.path.exists(
|
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
|
registry_idx += 1
|
||||||
else:
|
else:
|
||||||
return attempted_new_name
|
return attempted_new_name
|
||||||
|
|||||||
Reference in New Issue
Block a user