minor: fix for version_string in ReplSetManager

This commit is contained in:
Tyler Brock 2012-02-10 15:43:01 -05:00
parent 4317c9d1b0
commit 4a92a1e498
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class ReplSetManager
end
@mongods = {}
version_string = `mongod --version`
version_string = `#{@mongod} --version`
version_string =~ /(\d\.\d\.\d)/
@version = $1.split(".").map {|d| d.to_i }
end