From: Lucas Meneghel Rodrigues Subject: [PATCH 1/4] frontend.shared.rest_client: Fix reference to an undefined variable Date: Fri, 6 May 2011 19:24:11 -0300 Message-ID: <1304720654-3724-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org The author forgot to reference self, calling the method _http.request of the ResponseObject class. Signed-off-by: Lucas Meneghel Rodrigues --- frontend/shared/rest_client.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/frontend/shared/rest_client.py b/frontend/shared/rest_client.py index 9c4f5d5..7294e40 100644 --- a/frontend/shared/rest_client.py +++ b/frontend/shared/rest_client.py @@ -143,7 +143,7 @@ class Resource(object): logging.debug('Response verification failed, clearing headers and ' 'trying again:\n%s', response_body) _clear_request_headers(uri) - headers, response_body = _http.request( + headers, response_body = self._http.request( full_uri, method, body=entity_body, headers=_get_request_headers(uri)) -- 1.7.5