You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by su...@apache.org on 2014/07/02 20:54:21 UTC

git commit: AMBARI-6365. python client :invalid arguments to setopt(subin)

Repository: ambari
Updated Branches:
  refs/heads/trunk 05760df1e -> 02eb85804


AMBARI-6365. python client :invalid arguments to setopt(subin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/02eb8580
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/02eb8580
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/02eb8580

Branch: refs/heads/trunk
Commit: 02eb858041cc36a1ed038760068a2431cc1f56fa
Parents: 05760df
Author: Subin <su...@apache.org>
Authored: Thu Jul 3 00:20:41 2014 +0530
Committer: Subin <su...@apache.org>
Committed: Thu Jul 3 00:22:04 2014 +0530

----------------------------------------------------------------------
 .../src/main/python/ambari_client/core/http_client.py          | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/02eb8580/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
----------------------------------------------------------------------
diff --git a/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py b/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
index 72b3b5f..39b9961 100644
--- a/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
+++ b/ambari-client/python-client/src/main/python/ambari_client/core/http_client.py
@@ -103,12 +103,6 @@ class HttpClient(object):
         self.c.setopt(pycurl.WRITEFUNCTION, buf.write)
         self.c.setopt(pycurl.SSL_VERIFYPEER, 0)
 
-        # make sure options are reset from previous requests or your GET might
-        # become a DELETE
-        self.c.setopt(pycurl.CUSTOMREQUEST, None)
-        self.c.setopt(pycurl.HTTPGET, 0)
-        self.c.setopt(pycurl.NOBODY, 0)
-        self.c.setopt(pycurl.POST, 0)
 
         LOG.debug("invoke : url = " + str(url))
         # set http_method