[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix unittest breakage from config patch



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv1376/lib/mixminion

Modified Files:
	ClientDirectory.py 
Log Message:
Fix unittest breakage from config patch

Index: ClientDirectory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientDirectory.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- ClientDirectory.py	9 Jan 2004 01:03:27 -0000	1.26
+++ ClientDirectory.py	12 Jan 2004 00:43:54 -0000	1.27
@@ -1001,16 +1001,14 @@
         self._lock.read_in()
         try:
             if client:
-                if not self.clientVersions:
-                    return
-                allowed = self.clientVersions.split()
+                allowed = self.clientVersions
             else:
-                if not self.serverVersions:
-                    return
-                allowed = self.serverVersions.split()
+                allowed = self.serverVersions
         finally:
             self._lock.read_out()
 
+        if not allowed: return
+
         current = mixminion.__version__
         if current in allowed:
             # This version is recommended.