Permalink
Browse files

allow missing couchApiBase

  • Loading branch information...
1 parent 3050c8c commit 73944ad5f104e6fb08f70a9733b483986716e07d @avsej avsej committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/em-couchbase/configuration.rb
View
2 lib/em-couchbase/configuration.rb
@@ -102,7 +102,7 @@ def build_config(json)
:admin => admin,
:proxy => admin.sub(/:\d+$/, ":#{ports.fetch("proxy")}"),
:direct => admin.sub(/:\d+$/, ":#{ports.fetch("direct")}"),
- :couch => node.fetch("couchApiBase"),
+ :couch => node["couchApiBase"], # nil for 1.8.x series
:status => node.fetch("status"),
:version => node.fetch("version")
}

0 comments on commit 73944ad

Please sign in to comment.