Commit 19a48b2b authored by Kirk Webb's avatar Kirk Webb
Browse files

Add missing "where node_id = .." clause to lease renewal update statment.

parent be8b5f28
...@@ -1352,8 +1352,9 @@ class Node: ...@@ -1352,8 +1352,9 @@ class Node:
print self.leasedata print self.leasedata
self.lease = lease.lease(self.leasedata) self.lease = lease.lease(self.leasedata)
DBQueryFatal("update plab_slice_nodes" DBQueryFatal("update plab_slice_nodes"
" set leasedata = %s, leaseend = %s", " set leasedata = %s, leaseend = %s"
(self.leasedata, self.lease.end_time)) " where node_id = %s",
(self.leasedata, self.lease.end_time, self.nodeid))
return 0 return 0
def emulabify(self, rootballpath = DEFAULT_DATA_PATH, def emulabify(self, rootballpath = DEFAULT_DATA_PATH,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment