Skip to content

Commit

Permalink
wrong function call
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Aug 16, 2023
1 parent c58a5ca commit 8cc7a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/ansible_openvpn/playbooks/files/openvpn_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ def main():
s.connect(("openvpn", int(os.environ["MANAGEMENT_OPENVPN_PORT"])))
sout = receive(s)
if sout == 'ENTER PASSWORD:':
s.send(os.environ["MANAGEMENT_OPENVPN_PASSWORD"] + "\n")
send(s, os.environ["MANAGEMENT_OPENVPN_PASSWORD"] + "\n")
sout = receive(s)
if not ">INFO:" not in sout:
print(sout, file=sys.stderr)
exit(-1)
s.send("status\n")
send(s, "status\n")
log_text = receive(s)

hosts = parse_openvpn_status(log_text)
Expand Down

0 comments on commit 8cc7a61

Please sign in to comment.