Only do the split on input machines variable (from optparse) if 
there are machines.

Signed-off-by: Travis Miller <raphtee@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2174 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index 70363df..38d03bd 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -13,8 +13,7 @@
 import sys, os, re, traceback, signal
 
 import common
-from autotest_lib.server import server_job, utils
-from autotest_lib.server import autoserv_parser
+from autotest_lib.server import server_job, utils, autoserv_parser
 
 
 class PidFileManager(object):
@@ -59,7 +58,12 @@
     if not realuser:
         realuser = 'anonymous'
 
-    machines = parser.options.machines.replace(',', ' ').strip().split()
+
+
+    if parser.options.machines:
+        machines = parser.options.machines.replace(',', ' ').strip().split()
+    else:
+        machines = []
     machines_file = parser.options.machines_file
     label = parser.options.label
     user = parser.options.user