about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-12-08 21:00:20 +0000
committerEric Wong <normalperson@yhbt.net>2011-12-08 21:00:20 +0000
commit4bba2b2ab0d6a00403afe8bc7575f74d45393bf9 (patch)
treeabeb043e85cda516bc590f8b95ea5081cc1cb929
parente87d69883d050dfb24525a89bcd340250dad6991 (diff)
downloadmogilefs-client-4bba2b2ab0d6a00403afe8bc7575f74d45393bf9.tar.gz
-rwxr-xr-xbin/mog5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mog b/bin/mog
index 4121459..6ca3ca5 100755
--- a/bin/mog
+++ b/bin/mog
@@ -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.