antirez/redis — pull request #181 by redsquirrel (2011-11-10 01:09:57+00:00)
Title: Fixing inject: it was failing when there was 1 or >2 sources

I've been playing around with Redis Cluster and got this error when I used only one source during a reshard:

redis-trib.rb:327:in `/': ClusterNode can't be coerced into Float (TypeError)
from redis-trib.rb:327:in `block in compute_reshard_table'
from redis-trib.rb:324:in `each'
from redis-trib.rb:324:in `each_with_index'
from redis-trib.rb:324:in `compute_reshard_table'
from redis-trib.rb:434:in `reshard_cluster_cmd'
from redis-trib.rb:493:in `

'

This commit fixes this exception.