incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mry...@apache.org
Subject svn commit: r736703 - /incubator/tashi/trunk/src/tashi/agents/examplepolicy.py
Date Thu, 22 Jan 2009 16:50:59 GMT
Author: mryan3
Date: Thu Jan 22 08:50:58 2009
New Revision: 736703

URL: http://svn.apache.org/viewvc?rev=736703&view=rev
Log:
Minor bug fix where the example scheduler would schedule on a node not in the normal state


Modified:
    incubator/tashi/trunk/src/tashi/agents/examplepolicy.py

Modified: incubator/tashi/trunk/src/tashi/agents/examplepolicy.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/agents/examplepolicy.py?rev=736703&r1=736702&r2=736703&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/agents/examplepolicy.py (original)
+++ incubator/tashi/trunk/src/tashi/agents/examplepolicy.py Thu Jan 22 08:50:58 2009
@@ -53,7 +53,7 @@
 					min = None
 					minHost = None
 					for h in self.hosts.values():
-						if ((min is None or len(load[h.id]) < min) and h.up == True):
+						if ((min is None or len(load[h.id]) < min) and h.up == True and h.state == HostState.Normal):
 							min = len(load[h.id])
 							minHost = h
 					if (minHost):



Mime
View raw message