Skip to content

Commit fe9aada

Browse files
committed
fixes #135
1 parent 826956a commit fe9aada

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/distributed_dns/vaping/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
probes:
32
- name: latency
43
type: std_fping

src/vaping/plugins/fping_mtr.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def parse_traceroute_line(self, line):
4040
host (`str`)
4141
"""
4242
try:
43-
logging.debug(line)
4443
host = line.split()[1]
4544
if host != "*":
4645
try:
@@ -74,12 +73,19 @@ def parse_traceroute(self, it):
7473
# skip first line
7574
if self.lines_read == 1:
7675
continue
76+
77+
# skip *
78+
# TODO: do something else here?
79+
if line[0] == "*":
80+
continue
81+
7782
host = self.parse_traceroute_line(line)
7883
if host and host not in hosts:
7984
hosts.append(host)
8085

8186
if not len(hosts):
8287
raise Exception("no path found")
88+
8389
return hosts
8490

8591
def get_hosts(self):

0 commit comments

Comments
 (0)