Navigation Menu

Skip to content

Commit

Permalink
Use detected value for host
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 17, 2014
1 parent e6863af commit 775794b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/drntest/engine.rb
Expand Up @@ -61,7 +61,7 @@ def load_catalog_json(target_path)
def extract_connection_info_catalog_v1(catalog_json)
zone = catalog_json["zones"].first
/\A([^:]+):(\d+)\/(.+)\z/ =~ zone
@config.host = "localhost" # $1
@config.host = $1
@config.port = $2.to_i
@config.tag = $3
end
Expand Down Expand Up @@ -90,7 +90,7 @@ def extract_connection_info_catalog_v2(catalog_json)
dataset["replicas"].each do |replica|
replica["slices"].each do |slice|
if /\A([^:]+):(\d+)\/([^.]+)/ =~ slice["volume"]["address"]
@config.host = "localhost" # $1
@config.host = $1
@config.port = $2.to_i
@config.tag = $3
return
Expand Down

0 comments on commit 775794b

Please sign in to comment.