diff options
author | Matthew Booth <mbooth@redhat.com> | 2016-05-12 13:56:19 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2016-05-13 15:27:21 +0100 |
commit | 059021550a22ddff731836a23a6b187ef1c19ad0 (patch) | |
tree | 23dfde081def80308afe250b5f8d0dd6cd7db3e3 /nova/virt/images.py | |
parent | 69d538849ddc32494da91fccb44b2d8f365e7bf9 (diff) | |
download | nova-059021550a22ddff731836a23a6b187ef1c19ad0.tar.gz |
Remove unused arguments to images.fetch and images.fetch_to_raw
Functions were passing in user_id and project_id to these functions,
but they were not being used. This change allows a subsequent patch to
drop an instance object as a function argument which has no purpose
other than to provide these unused values.
Change-Id: I844b97523b28b327e76e01ef7f16b57a415418ec
Diffstat (limited to 'nova/virt/images.py')
-rw-r--r-- | nova/virt/images.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/virt/images.py b/nova/virt/images.py index 2cac299345..3f5044c191 100644 --- a/nova/virt/images.py +++ b/nova/virt/images.py @@ -96,7 +96,7 @@ def _convert_image(source, dest, in_format, out_format, run_as_root): raise exception.ImageUnacceptable(image_id=source, reason=msg) -def fetch(context, image_href, path, _user_id, _project_id, max_size=0): +def fetch(context, image_href, path, max_size=0): with fileutils.remove_path_on_error(path): IMAGE_API.download(context, image_href, dest_path=path) @@ -105,10 +105,9 @@ def get_info(context, image_href): return IMAGE_API.get(context, image_href) -def fetch_to_raw(context, image_href, path, user_id, project_id, max_size=0): +def fetch_to_raw(context, image_href, path, max_size=0): path_tmp = "%s.part" % path - fetch(context, image_href, path_tmp, user_id, project_id, - max_size=max_size) + fetch(context, image_href, path_tmp, max_size=max_size) with fileutils.remove_path_on_error(path_tmp): data = qemu_img_info(path_tmp) |