Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Don't call get_si() in wait_for_tasks() #694

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions esx_service/vmdk_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down