Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix typo in monitor to correctly print IP address
[doctor.git]
/
tests
/
monitor.py
diff --git
a/tests/monitor.py
b/tests/monitor.py
index
bc22b1e
..
9e48986
100644
(file)
--- a/
tests/monitor.py
+++ b/
tests/monitor.py
@@
-31,7
+31,7
@@
class DoctorMonitorSample(object):
self.ip_addr = args.ip or socket.gethostbyname(self.hostname)
def start_loop(self):
self.ip_addr = args.ip or socket.gethostbyname(self.hostname)
def start_loop(self):
- print "start ping to host %(h)s (ip=
$
(i)s)" % {'h': self.hostname,
+ print "start ping to host %(h)s (ip=
%
(i)s)" % {'h': self.hostname,
'i': self.ip_addr}
sock = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.IPPROTO_ICMP)
'i': self.ip_addr}
sock = socket.socket(socket.AF_INET, socket.SOCK_RAW,
socket.IPPROTO_ICMP)