redis-trib: fixed type has_flags? -> has_flag.

This commit is contained in:
antirez 2013-03-22 12:28:06 +01:00
parent 4dded0c187
commit 77bba91b48

View File

@ -603,7 +603,7 @@ class RedisTrib
sources << n sources << n
} }
break break
elsif !src || src.has_flags?("slave") elsif !src || src.has_flag?("slave")
puts "The specified node is not known or is not a master, please retry." puts "The specified node is not known or is not a master, please retry."
elsif src.info[:name] == target.info[:name] elsif src.info[:name] == target.info[:name]
puts "It is not possible to use the target node as source node." puts "It is not possible to use the target node as source node."