AMBARI-25473 Upgrade Infra Solr Clients fails if it is installed on only one host (santal via oleewere)
diff --git a/ambari-infra-solr-client/src/main/python/migrationHelper.py b/ambari-infra-solr-client/src/main/python/migrationHelper.py
index e44044c..a257b34 100755
--- a/ambari-infra-solr-client/src/main/python/migrationHelper.py
+++ b/ambari-infra-solr-client/src/main/python/migrationHelper.py
@@ -508,6 +508,11 @@
   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()
@@ -2078,4 +2083,4 @@
       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)