Commit 2b7da3e3 by Szeberényi Imre

Disk serialization to VMDisk fix

parent edec537a
......@@ -339,6 +339,7 @@ class Disk(TimeStampedModel):
"""Serialize disk object to the vmdriver.
"""
return {
'name': self.name,
'source': self.path,
'driver_type': self.vm_format,
'driver_cache': 'none',
......
......@@ -82,7 +82,7 @@ class RemoteOperationMixin(object):
class AbortableRemoteOperationMixin(object):
remote_step = property(lambda self: self.remote_timeout / 10)
remote_step = property(lambda self: self.remote_timeout // 10)
def _operation(self, task, **kwargs):
args = self._get_remote_args(**kwargs),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment