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
@@ -63,3 +63,14 @@ class VPCS(BaseManager):
"""
return self._used_mac_ids.get(vm_id, 1)
@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 "pc-{}".format(legacy_vm_id)