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/01/26 22:32:53 UTC
svn commit: r1236420 -
/incubator/tashi/branches/stroucki-accounting/src/tashi/client/tashi-client.py
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: