incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1368668 - /incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py
Date Thu, 02 Aug 2012 19:50:51 GMT
Author: stroucki
Date: Thu Aug  2 19:50:50 2012
New Revision: 1368668

URL: http://svn.apache.org/viewvc?rev=1368668&view=rev
Log:
sql: return our "_id", not python's "id"

Modified:
    incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py

Modified: incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py?rev=1368668&r1=1368667&r2=1368668&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py (original)
+++ incubator/tashi/trunk/src/tashi/clustermanager/data/sql.py Thu Aug  2 19:50:50 2012
@@ -360,7 +360,7 @@ class SQL(DataInterface):
 		# XXXstroucki nicer?
 		self.executeStatement("INSERT INTO hosts VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
% tuple(l))
 		self.hostLock.release()
-		return id, False
+		return _id, False
 	
 	def unregisterHost(self, hostId):
 		self.hostLock.acquire()



Mime
View raw message