diff --git a/bin/draining_servers.rb b/bin/draining_servers.rb index 12f0ba4e1741..7e1a4e95c250 100644 --- a/bin/draining_servers.rb +++ b/bin/draining_servers.rb @@ -61,6 +61,7 @@ def getServers(admin) 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