incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1236420 - /incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py
Date Thu, 26 Jan 2012 22:32:53 GMT
Author: stroucki
Date: Thu Jan 26 22:32:53 2012
New Revision: 1236420

URL: http://svn.apache.org/viewvc?rev=1236420&view=rev
Log:
tashi-client: print a nicer return message on createVm

Modified:
    incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py

Modified: incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py?rev=1236420&r1=1236419&r2=1236420&view=diff
==============================================================================
--- incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py Thu Jan
26 22:32:53 2012
@@ -211,6 +211,7 @@ extraViews = {
 'getSlots': (getSlots, None),
 'getImages': (None, ['id', 'imageName', 'imageSize']), 
 'copyImage': (None, None), 
+'createVm': (None, ['id', 'hostId', 'name', 'user', 'state', 'disk', 'memory', 'cores']),
 'createMany': (createMany, ['id', 'hostId', 'name', 'user', 'state', 'disk', 'memory', 'cores']),
 'destroyMany': (destroyMany, None),
 'getVmLayout': (getVmLayout, ['id', 'name', 'state', 'instances', 'usedMemory', 'memory',
'usedCores', 'cores']),
@@ -575,7 +576,8 @@ def main():
 				if (type(res) == types.ListType):
 					makeTable(res, keys)
 				else:
-					pprint(res)
+					makeTable([res], keys)
+					
 			except IOError:
 				pass
 			except Exception, e:



Mime
View raw message