incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1355068 - /incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py
Date Thu, 28 Jun 2012 16:27:56 GMT
Author: stroucki
Date: Thu Jun 28 16:27:55 2012
New Revision: 1355068

URL: http://svn.apache.org/viewvc?rev=1355068&view=rev
Log:
clustermanagerservice: Return an assurance message on suspend, so that the client will print
it.
clustermanagerservice: Return an assurance message instead of a data structure, so that the
client will print a nice message.

Modified:
    incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py

Modified: incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py?rev=1355068&r1=1355067&r2=1355068&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py (original)
+++ incubator/tashi/trunk/src/tashi/clustermanager/clustermanagerservice.py Thu Jun 28 16:27:55
2012
@@ -429,7 +429,8 @@ class ClusterManagerService(object):
 		except:
 			self.log.exception('suspendVm failed for host %s vmId %d' % (hostname, instance.vmId))
 			raise TashiException(d={'errno':Errors.UnableToSuspend, 'msg':'Failed to suspend %s' %
(instance.name)})
-		return
+
+		return "%s is suspending." % (instance.name)
 	
 	# extern
 	def resumeVm(self, instanceId):
@@ -444,7 +445,7 @@ class ClusterManagerService(object):
 		instance.hints['__resume_source'] = source
 		self.data.releaseInstance(instance)
 		self.__ACCOUNT("CM VM RESUME", instance=instance)
-		return instance
+		return "%s is resuming." % (instance.name)
 	
 	# extern
 	def migrateVm(self, instanceId, targetHostId):



Mime
View raw message