Permalink
Browse files

move general bucket information out of 2.0 check

There is plenty more in that response that is useful
for 1.8 and earlier as well as 2.0.

Change-Id: I0ce5061de1fcd7729b2ac2807f747a41f61ee0f2
Reviewed-on: http://review.couchbase.org/20388
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
  • Loading branch information...
1 parent a96a6a5 commit 01276880610bc34b5828f1c23042e3fdf4d8f1f8 @BigBlueHat BigBlueHat committed with Benjamin Young Aug 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 couchbase/rest_client.py
View
@@ -173,10 +173,10 @@ def __init__(self, serverInfo):
self.couch_api_base = None
self.base_url = "http://{0}:{1}".format(self.ip, self.port)
+ server_config_uri = ''.join([self.base_url, '/pools/default'])
+ self.config = requests.get(server_config_uri).json
# if couchApiBase is not set earlier, let's look it up
if self.couch_api_base is None:
- server_config_uri = ''.join([self.base_url, '/pools/default'])
- self.config = requests.get(server_config_uri).json
#couchApiBase is not in node config before Couchbase Server 2.0
self.couch_api_base = self.config["nodes"][0].get("couchApiBase")

0 comments on commit 0127688

Please sign in to comment.