Perform handshakes asynchronously
This commit is contained in:
@@ -5,7 +5,7 @@ class CheckReporter:
|
||||
def __init__(self):
|
||||
self.checks = list()
|
||||
|
||||
def add_check(self, check):
|
||||
def append(self, check):
|
||||
self.checks.append(check)
|
||||
|
||||
def failed(self):
|
||||
@@ -43,8 +43,8 @@ class JSONReporter(CheckReporter):
|
||||
|
||||
|
||||
class DefaultReporter(CheckReporter):
|
||||
def add_check(self, check):
|
||||
super().add_check(check)
|
||||
def append(self, check):
|
||||
super().append(check)
|
||||
result = f"[{'PASS' if check.check_successful else 'FAIL'}] Check host {check.hostname}"
|
||||
if check.debug:
|
||||
result += f" - {check.debug}"
|
||||
|
||||
Reference in New Issue
Block a user