From patchwork Fri May 6 22:24:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 763412 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p46MOvwu004100 for ; Fri, 6 May 2011 22:24:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974Ab1EFWYg (ORCPT ); Fri, 6 May 2011 18:24:36 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:50256 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022Ab1EFWY1 (ORCPT ); Fri, 6 May 2011 18:24:27 -0400 Received: by gwaa18 with SMTP id a18so1344533gwa.19 for ; Fri, 06 May 2011 15:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=aWypBgM7B8HDC02nADS/gsLP9kuPU4oCSAB6lswfEaQ=; b=Brd4rWtAqYBRfBfDuOEuYsTtWwWYptnuDl3dQyEbLzNCpG0TTXM5u1GiUXhGRb8Kd0 q9Lz+W8OBXP2b3wvlX79+hTYWbEhddN0VNYmcoi3KkS/RXNcyG6iqUgSrsBX3JiV62BF ZWEu7dOEuMfvkthxdvtMhPl05es7Q8tYec4es= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=XAjcGLk3z5WYHmw4PkfZQkRTiGdSj4+fNr+mklEcatzHlDzNI7UoOXLm+UHhFOsvNM TMBqSf5g+dD2A7yPyRbWa1REVKGmq3vORJXcmn8q9xbJMWgq1gFhyiLVUQIxmflAIhyN GITFNUik9DMI7D4dubG0UyuPgPI1tLJ0NNbuI= Received: by 10.236.73.137 with SMTP id v9mr4987382yhd.256.1304720666460; Fri, 06 May 2011 15:24:26 -0700 (PDT) Received: from localhost.localdomain ([187.112.24.224]) by mx.google.com with ESMTPS id p9sm1698867yhm.7.2011.05.06.15.24.23 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 May 2011 15:24:25 -0700 (PDT) From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, 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> X-Mailer: git-send-email 1.7.5 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 06 May 2011 22:24:58 +0000 (UTC) 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))