Created
March 7, 2012 22:56
-
-
Save vishvananda/1996902 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py | |
| index b292c93..889488c 100644 | |
| --- a/nova/virt/libvirt/connection.py | |
| +++ b/nova/virt/libvirt/connection.py | |
| @@ -2018,13 +2018,13 @@ class LibvirtConnection(driver.ComputeDriver): | |
| # if image has kernel and ramdisk, just download | |
| # following normal way. | |
| if instance_ref['kernel_id']: | |
| - libvirt_utils.fetch_image(nova_context.get_admin_context(), | |
| + libvirt_utils.fetch_image(ctxt, | |
| os.path.join(instance_dir, 'kernel'), | |
| instance_ref['kernel_id'], | |
| instance_ref['user_id'], | |
| instance_ref['project_id']) | |
| if instance_ref['ramdisk_id']: | |
| - libvirt_utils.fetch_image(nova_context.get_admin_context(), | |
| + libvirt_utils.fetch_image(ctxt, | |
| os.path.join(instance_dir, 'ramdisk'), | |
| instance_ref['ramdisk_id'], | |
| instance_ref['user_id'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment