From 77bba91b4827f81088092dee22b360fc4b822be3 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 22 Mar 2013 12:28:06 +0100 Subject: [PATCH] redis-trib: fixed type has_flags? -> has_flag. --- src/redis-trib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index f729b8093..2c702a88f 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -603,7 +603,7 @@ class RedisTrib sources << n } 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." elsif src.info[:name] == target.info[:name] puts "It is not possible to use the target node as source node."