You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by st...@apache.org on 2012/07/19 00:09:14 UTC

svn commit: r1363185 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py

Author: stroucki
Date: Thu Jul 19 00:09:13 2012
New Revision: 1363185

URL: http://svn.apache.org/viewvc?rev=1363185&view=rev
Log:
tashi-client: improve syntax of getSlots message

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1363185&r1=1363184&r2=1363185&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Thu Jul 19 00:09:13 2012
@@ -201,11 +201,11 @@ def getSlots(cores, memory):
 		countbymemory = int((h.memory - h.usedMemory) / memory)
 		count += max(0, min(countbycores, countbymemory))
 
-	print "%d" % (count), "available slots for",
-	print ("instances", "instance")[count == 1],
-	print "with %d" % (cores),
+	print "%d" % (count), "available"
+	print ("slots", "slot")[count == 1],
+	print "for instances with %d" % (cores),
 	print ("cores", "core")[cores == 1],
-	print "and %d MB memory." % (memory)
+	print "and %d MB of memory." % (memory)
 	
 def createMany(instance, count):
 	# will create instances from 0 to count-1