Skip to content

Commit

Permalink
Fix SyntaxError: invalid syntax (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaroff authored Jul 14, 2023
1 parent 5e39795 commit e26d1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def tls_command(crit: int, warn: int, ports: Optional[str]) -> Result:

for port in get_ports(ports):
try:
addr: Tuple[str, int] = socket.getfqdn(), int(port)
addr: Tuple[str, int] = (socket.getfqdn(), int(port))
cert: str = ssl.get_server_certificate(addr)
certificate, days_to_expire = load_certificate_info(str.encode(cert))
except Exception as e:
Expand Down

0 comments on commit e26d1af

Please sign in to comment.