Allow virtual machines to use files in project directory as disk images.

This commit is contained in:
grossmj committed 2018-11-19 15:53:43 +07:00
1 parent 3861d6a274
commit 3497deaa31
5 files changed
+52 -31

No files matched your search

+3 -4
View File
@@ -75,7 +75,7 @@ class IOUVM(BaseNode):
self._iou_stdout_file = ""
self._started = False
self._nvram_watcher = None
self._path = self.manager.get_abs_image_path(path)
self._path = self.manager.get_abs_image_path(path, project.path)
self._license_check = True
# IOU settings
@@ -137,7 +137,7 @@ class IOUVM(BaseNode):
:param path: path to the IOU image executable
"""
self._path = self.manager.get_abs_image_path(path)
self._path = self.manager.get_abs_image_path(path, self.project.path)
log.info('IOU "{name}" [{id}]: IOU image updated to "{path}"'.format(name=self._name, id=self._id, path=self._path))
@property
@@ -232,8 +232,7 @@ class IOUVM(BaseNode):
"command_line": self.command_line,
"application_id": self.application_id}
# return the relative path if the IOU image is in the images_path directory
iou_vm_info["path"] = self.manager.get_relative_image_path(self.path)
iou_vm_info["path"] = self.manager.get_relative_image_path(self.path, self.project.path)
return iou_vm_info
@property