Skip to content

Commit

Permalink
Add missing context argument to start_transfer calls
Browse files Browse the repository at this point in the history
The first argument of start_transfer is context. Apparently it
is missing.

Partially fix bug 1037183

Change-Id: I83b30a8f7d275d7675d11bd8dcad76dd7a893deb
  • Loading branch information
maoy committed Aug 24, 2012
1 parent 4b7c87a commit b11f68a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nova/virt/vmwareapi/vmware_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def fetch_image(context, image, instance, **kwargs):
kwargs.get("cookies"),
kwargs.get("file_path"),
file_size)
start_transfer(read_file_handle, file_size,
start_transfer(context, read_file_handle, file_size,
write_file_handle=write_file_handle)
LOG.debug(_("Downloaded image %s from glance image server") % image,
instance=instance)
Expand Down Expand Up @@ -131,8 +131,9 @@ def upload_image(context, image, instance, **kwargs):
"vmware_ostype": kwargs.get("os_type"),
"vmware_image_version":
kwargs.get("image_version")}}
start_transfer(read_file_handle, file_size, image_service=image_service,
image_id=image_id, image_meta=image_metadata)
start_transfer(context, read_file_handle, file_size,
image_service=image_service,
image_id=image_id, image_meta=image_metadata)
LOG.debug(_("Uploaded image %s to the Glance image server") % image,
instance=instance)

Expand Down

0 comments on commit b11f68a

Please sign in to comment.