Fix typo in monitor to correctly print IP address 77/17377/2
authorCarlos Goncalves <carlos.goncalves@neclab.eu>
Thu, 21 Jul 2016 20:26:32 +0000 (22:26 +0200)
committerCarlos Goncalves <carlos.goncalves@neclab.eu>
Thu, 21 Jul 2016 20:39:45 +0000 (22:39 +0200)
Change-Id: I335cf82f3996359327d0cacfcdc53eda8a709f86
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
tests/monitor.py

index bc22b1e..9e48986 100644 (file)
@@ -31,7 +31,7 @@ class DoctorMonitorSample(object):
         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)