lib/etcd/keys.rb in etcd-0.2.3 vs lib/etcd/keys.rb in etcd-0.2.4

- old
+ new

@@ -74,9 +74,10 @@ fail ArgumentError, 'Second argument must be a hash' unless opts.is_a?(Hash) timeout = opts[:timeout] || @read_timeout index = opts[:waitIndex] || opts[:index] params[:waitIndex] = index unless index.nil? params[:consistent] = opts[:consistent] if opts.key?(:consistent) + params[:recursive] = opts[:recursive] if opts.key?(:recursive) response = api_execute(key_endpoint + key, :get, timeout: timeout, params: params) Response.from_http_response(response) end