mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Handle old projects.
This commit is contained in:
1 parent
2a3b37a3bd
commit
0d7d0a05c3
6 files changed
+52
-11
No files matched your search
@@ -127,3 +127,14 @@ class VirtualBox(BaseManager):
|
||||
if not extra_data[0].strip() == "Value: yes":
|
||||
vms.append(vmname)
|
||||
return vms
|
||||
|
||||
@staticmethod
|
||||
def get_legacy_vm_workdir_name(legacy_vm_id):
|
||||
"""
|
||||
Returns the name of the legacy working directory name for a VM.
|
||||
|
||||
:param legacy_vm_id: legacy VM identifier (integer)
|
||||
:returns: working directory name
|
||||
"""
|
||||
|
||||
return "vm-{}".format(legacy_vm_id)
|
||||
Reference in new issue
Block a user