diff mbox

[1/4] frontend.shared.rest_client: Fix reference to an undefined variable

Message ID 1304720654-3724-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues May 6, 2011, 10:24 p.m. UTC
The author forgot to reference self, calling the method _http.request
of the ResponseObject class.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 frontend/shared/rest_client.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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))