projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb38616
)
watcher: Fix breakage caused by 9bb69bb52fb9
author
Michael Hanselmann
<hansmi@google.com>
Fri, 5 Aug 2011 12:17:07 +0000
(14:17 +0200)
committer
Michael Hanselmann
<hansmi@google.com>
Fri, 5 Aug 2011 13:40:15 +0000
(15:40 +0200)
The first argument to str.split is the separator, not the maximum number
of splits.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/watcher/__init__.py
patch
|
blob
|
history
diff --git
a/lib/watcher/__init__.py
b/lib/watcher/__init__.py
index
82682d7
..
45e285f
100644
(file)
--- a/
lib/watcher/__init__.py
+++ b/
lib/watcher/__init__.py
@@
-445,7
+445,7
@@
def _ReadInstanceStatus(filename):
logging.exception("Unable to read '%s', ignoring", filename)
return (None, None)
else:
- return (statcb.st.st_mtime, [line.split(1)
+ return (statcb.st.st_mtime, [line.split(None, 1)
for line in content.splitlines()])