Commit 92c6eb66 authored by Kirk Webb's avatar Kirk Webb

Oops: small bug fix.

parent e1a2fabc
......@@ -561,7 +561,7 @@ class Slice:
"where pid=%s "
"and eid=%s",
(self.pid, self.eid))
if !len(res):
if len(res) == 0:
raise RuntimeError, "Didn't get any results while looking for idx"
((eindex, ), ) = res
self.slicename = "emulab_%s_%s_%s" % (self.pid, self.eid, eindex)
......
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