From 1b5ac0b7678fe77daa05481097e69c4726899394 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <pbrady@redhat.com>
Date: Fri, 10 Feb 2012 15:18:50 +0000
Subject: [PATCH] remove unused and buggy function from baremetal proxy

* nova/virt/baremetal/proxy.py (_fetch_image): This function
reference 'images' which is undefined.  So just remove it
as it's unused.

Change-Id: I7016f6e8a68fefab4342adadd032e93f963a074e
---
 nova/virt/baremetal/proxy.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/nova/virt/baremetal/proxy.py b/nova/virt/baremetal/proxy.py
index 5b70b6a90a..228a8ef2c2 100644
--- a/nova/virt/baremetal/proxy.py
+++ b/nova/virt/baremetal/proxy.py
@@ -335,11 +335,6 @@ class ProxyConnection(driver.ComputeDriver):
             else:
                 libvirt_utils.copy_image(base, target)
 
-    def _fetch_image(self, context, target, image_id, user_id, project_id,
-                     size=None):
-        """Grab image and optionally attempt to resize it"""
-        images.fetch_to_raw(context, image_id, target, user_id, project_id)
-
     def _create_image(self, context, inst, xml, suffix='',
                       disk_images=None, network_info=None,
                       block_device_info=None):