projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd34e7b
)
cleanup: TcpPing, wrong variable name
author
Iustin Pop
<iustin@google.com>
Sun, 14 Dec 2008 12:03:56 +0000
(12:03 +0000)
committer
Iustin Pop
<iustin@google.com>
Sun, 14 Dec 2008 12:03:56 +0000
(12:03 +0000)
The default value of 'False' wasn't initialized properly. It doesn't
require initialization, but it's cleaner this way.
Reviewed-by: amishchenko
lib/utils.py
patch
|
blob
|
history
diff --git
a/lib/utils.py
b/lib/utils.py
index
823c208
..
23387aa
100644
(file)
--- a/
lib/utils.py
+++ b/
lib/utils.py
@@
-1006,7
+1006,7
@@
def TcpPing(target, port, timeout=10, live_port_needed=False, source=None):
"""
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- sucess = False
+ success = False
if source is not None:
try: