tashi-client: Don't use lambda functions for choices of grammatical number; a string list works as well.
git-svn-id: https://svn.apache.org/repos/asf/incubator/tashi/trunk@1363181 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/tashi/client/tashi-client.py b/src/tashi/client/tashi-client.py
index f051015..12ad5fe 100755
--- a/src/tashi/client/tashi-client.py
+++ b/src/tashi/client/tashi-client.py
@@ -201,11 +201,11 @@
countbymemory = int((h.memory - h.usedMemory) / memory)
count += max(0, min(countbycores, countbymemory))
- print "%d" % (count),
- print (lambda:"instances", lambda:"instance")[count == 1](),
+ print "%d" % (count), "available slots for",
+ print ("instances", "instance")[count == 1],
print "with %d" % (cores),
- print (lambda:"cores", lambda:"core")[cores == 1](),
- print "and %d MB memory could be created." % (memory)
+ print ("cores", "core")[cores == 1],
+ print "and %d MB memory." % (memory)
def createMany(instance, count):
# will create instances from 0 to count-1