projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58885d7
)
Yet another bug found while reviewing docs
author
Iustin Pop
<iustin@google.com>
Mon, 27 Oct 2008 23:20:57 +0000
(23:20 +0000)
committer
Iustin Pop
<iustin@google.com>
Mon, 27 Oct 2008 23:20:57 +0000
(23:20 +0000)
The newer_than variable can be either None or an int, and we normalize
it to an integer previously and save it in the 'serial' variable, which
should be used instead.
Reviewed-by: imsnah
lib/jqueue.py
patch
|
blob
|
history
diff --git
a/lib/jqueue.py
b/lib/jqueue.py
index
86c3d86
..
a3ef748
100644
(file)
--- a/
lib/jqueue.py
+++ b/
lib/jqueue.py
@@
-185,7
+185,7
@@
class _QueuedJob(object):
entries = []
for op in self.ops:
- entries.extend(filter(lambda entry: entry[0] > newer_than, op.log))
+ entries.extend(filter(lambda entry: entry[0] > serial, op.log))
return entries