From a4d58186d081ae862f29ce10991fbdb3050520f5 Mon Sep 17 00:00:00 2001 From: Bruno Moura Date: Thu, 3 Nov 2016 10:10:10 +0000 Subject: [PATCH] vmdk_ops: Don't call get_si() in wait_for_tasks(), it is passed as an argument by the caller. --- esx_service/vmdk_ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esx_service/vmdk_ops.py b/esx_service/vmdk_ops.py index 5d7c341b2..7a11be0a6 100755 --- a/esx_service/vmdk_ops.py +++ b/esx_service/vmdk_ops.py @@ -1319,11 +1319,10 @@ def getTaskList(prop_collector, tasks): """ -def wait_for_tasks(service_instance, tasks): +def wait_for_tasks(si, tasks): """Given the service instance si and tasks, it returns after all the tasks are complete """ - si = get_si() task_list = [str(task) for task in tasks] property_collector = si.content.propertyCollector pcfilter = getTaskList(property_collector, tasks)