diff --git a/bin/draining_servers.rb b/bin/draining_servers.rb index 12f0ba4e174..7e1a4e95c25 100644 --- a/bin/draining_servers.rb +++ b/bin/draining_servers.rb @@ -61,6 +61,7 @@ end def getServerNames(hostOrServers, config) ret = [] connection = ConnectionFactory.createConnection(config) + admin = nil hostOrServers.each do |host_or_server| # check whether it is already serverName. No need to connect to cluster