Kouhei Sutou
null+****@clear*****
Thu Mar 20 00:30:56 JST 2014
Kouhei Sutou 2014-03-20 00:30:56 +0900 (Thu, 20 Mar 2014) New Revision: 655b4c27bbe292cc0122427bdccfd23f4da0ca30 https://github.com/droonga/drntest/commit/655b4c27bbe292cc0122427bdccfd23f4da0ca30 Message: Unindent Modified files: lib/drntest/engine.rb Modified: lib/drntest/engine.rb (+10 -10) =================================================================== --- lib/drntest/engine.rb 2014-03-20 00:30:46 +0900 (fbffd33) +++ lib/drntest/engine.rb 2014-03-20 00:30:56 +0900 (2dfbac8) @@ -84,19 +84,19 @@ module Drntest end def extract_connection_info_catalog_v2(catalog_json) - datasets = catalog_json["datasets"] - datasets.each do |name, dataset| - dataset["replicas"].each do |replica| - replica["slices"].each do |slice| - if /\A([^:]+):(\d+)\/([^.]+)/ =~ slice["volume"]["address"] - @config.host = "localhost" # $1 - @config.port = $2.to_i - @config.tag = $3 - return - end + datasets = catalog_json["datasets"] + datasets.each do |name, dataset| + dataset["replicas"].each do |replica| + replica["slices"].each do |slice| + if /\A([^:]+):(\d+)\/([^.]+)/ =~ slice["volume"]["address"] + @config.host = "localhost" # $1 + @config.port = $2.to_i + @config.tag = $3 + return end end end + end end def setup(target_path) -------------- next part -------------- HTML����������������������������...Download