Skip to content

Commit

Permalink
Merge "Add url output when binding for mongolab compatibility"
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffwang authored and Gerrit Code Review committed Jul 4, 2012
2 parents 851daa0 + dc52e6d commit e9d26ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mongodb/lib/mongodb_service/mongodb_node.rb
Expand Up @@ -319,7 +319,8 @@ def bind(name, bind_opts, credential = nil)
"username" => username,
"password" => password,
"name" => provisioned_service.name,
"db" => provisioned_service.db
"db" => provisioned_service.db,
"url" => "mongodb://#{username}:#{password}@#{host}:#{provisioned_service.port}/#{provisioned_service.db}"
}

@logger.debug("Bind response: #{response}")
Expand Down

0 comments on commit e9d26ce

Please sign in to comment.