Skip to content

Commit

Permalink
must be tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 28, 2023
1 parent 980cdeb commit a775c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ansible_openvpn/openvpn_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main():
log_text = file.read()
else:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect("localhost:"+os.environ["MANAGEMENT_OPENVPN_PORT"])
s.connect(("localhost", int(os.environ["MANAGEMENT_OPENVPN_PORT"])))
sout = receive(s)
if sout == 'ENTER PASSWORD:':
s.send(os.environ["MANAGEMENT_OPENVPN_PASSWORD"] + "\n")
Expand Down

0 comments on commit a775c7c

Please sign in to comment.