incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1292882 - /incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py
Date Thu, 23 Feb 2012 18:27:16 GMT
Author: stroucki
Date: Thu Feb 23 18:27:16 2012
New Revision: 1292882

URL: http://svn.apache.org/viewvc?rev=1292882&view=rev
Log:
filename is fully qualified, so put a suffix at the end (for now)

Modified:
    incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py

Modified: incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py?rev=1292882&r1=1292881&r2=1292882&view=diff
==============================================================================
--- incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py (original)
+++ incubator/tashi/branches/stroucki-irpbugs/src/tashi/clustermanager/data/pickled.py Thu
Feb 23 18:27:16 2012
@@ -53,7 +53,8 @@ class Pickled(FromConfig):
 	
 	def save(self):
 		filename = self.file
-		tempfile = ".%s" % filename
+		# XXXstroucki could be better
+		tempfile = "%s.new" % filename
 
 		file = open(tempfile, "w")
 		cPickle.dump((self.cleanHosts(), self.cleanInstances(), self.networks, self.users), file)



Mime
View raw message