Handle old projects.

This commit is contained in:
grossmj committed 2015-02-08 18:10:04 -07:00
1 parent 2a3b37a3bd
commit 0d7d0a05c3
6 files changed
+52 -11

No files matched your search

+11
View File
@@ -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)