host = socket.gethostname()
if host in solr_client_hosts:
solr_client_hosts.remove(host)
+
+ if not len(solr_client_hosts):
+ print 'The Solr Clients upgrade request has been aborted because no other host can be upgraded.'
+ sys.exit(0)
+
context = "Upgrade Solr Clients"
sys.stdout.write("Sending upgrade request: [{0}] ".format(context))
sys.stdout.flush()
print 30 * "-"
print "Command elapsed time: {0}".format(time_to_print)
print 30 * "-"
- print "Migration helper command {0}FINISHED{1}".format(colors.OKGREEN, colors.ENDC)
\ No newline at end of file
+ print "Migration helper command {0}FINISHED{1}".format(colors.OKGREEN, colors.ENDC)