mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Match recent changes to the task class in XenAPI with the get_record call here.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
fcbd69e648
commit
6a288c4b02
1 file changed
+1
-2
@@ -67,7 +67,6 @@ class XendTask(threading.Thread):
|
||||
self.status = XEN_API_TASK_STATUS_TYPE[0]
|
||||
|
||||
self.progress = 0
|
||||
self.eta = None # TODO: we have no time estimates
|
||||
self.type = return_type
|
||||
self.uuid = uuid
|
||||
|
||||
@@ -141,11 +140,11 @@ class XendTask(threading.Thread):
|
||||
'name_description': self.name_description,
|
||||
'status': self.status,
|
||||
'progress': self.get_progress(),
|
||||
'eta': self.eta,
|
||||
'type': self.type,
|
||||
'result': self.result,
|
||||
'error_code': self.error_code,
|
||||
'error_info': self.error_info,
|
||||
'allowed_operations': {},
|
||||
}
|
||||
|
||||
def get_progress(self):
|
||||
|
||||