incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1338456 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Date Mon, 14 May 2012 22:15:57 GMT
Author: stroucki
Date: Mon May 14 22:15:57 2012
New Revision: 1338456

URL: http://svn.apache.org/viewvc?rev=1338456&view=rev
Log:
qemu: use softconfig's default argument to set defaults

Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=1338456&r1=1338455&r2=1338456&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Mon May 14 22:15:57 2012
@@ -109,14 +109,8 @@ class Qemu(VmControlInterface):
 		self.migrationSemaphore = threading.Semaphore(int(self.config.get("Qemu", "maxParallelMigrations")))
 		self.stats = {}
 
-		self.suspendHandler = self.__config("Qemu", "suspendHandler")
-		self.resumeHandler = self.__config("Qemu", "resumeHandler")
-
-		if self.suspendHandler is None:
-			self.suspendHandler = "gzip"
-
-		if self.resumeHandler is None:
-			self.resumeHandler = "zcat"
+		self.suspendHandler = self.__config("Qemu", "suspendHandler", default = "gzip")
+		self.resumeHandler = self.__config("Qemu", "resumeHandler", default = "zcat")
 
 		self.scratchVg = self.__config("Qemu", "scratchVg")
 



Mime
View raw message