diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-12-08 21:00:20 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-12-08 21:00:20 +0000 |
commit | 4bba2b2ab0d6a00403afe8bc7575f74d45393bf9 (patch) | |
tree | abeb043e85cda516bc590f8b95ea5081cc1cb929 | |
parent | e87d69883d050dfb24525a89bcd340250dad6991 (diff) | |
download | mogilefs-client-4bba2b2ab0d6a00403afe8bc7575f74d45393bf9.tar.gz |
-rwxr-xr-x | bin/mog | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -14,8 +14,7 @@ if md5_trailer_nodes = ENV["MD5_TRAILER_NODES"] end # this is to be compatible with config files used by the Perl tools -def parse_config_file!(path, overwrite = false) - dest = {} +def parse_config_file!(path, dest = {}) File.open(path).each_line do |line| case line when /^(domain|class)\s*=\s*(\S+)/ @@ -79,7 +78,7 @@ ARGV.options do |x| end # parse the config file specified at the command-line -file_cfg = config_file ? parse_config_file!(config_file, true) : {} +file_cfg = config_file ? parse_config_file!(config_file) : {} # read environment variables, too. This Ruby API favors the term # "hosts", however upstream MogileFS teminology favors "trackers" instead. |