Browse Source

Merge "[TRAIN-and-older] Properly close sockets" into stable/train

changes/13/740913/4
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
0e7c3ab43d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tripleoclient/workflows/deployment.py

+ 3
- 1
tripleoclient/workflows/deployment.py View File

@@ -178,12 +178,14 @@ def wait_for_ssh_port(host, timeout=ENABLE_SSH_ADMIN_SSH_PORT_TIMEOUT):
return
except socket.error:
try:
# close previous socket before creating a new one
sock.close()
sock = socket.socket(socket.AF_INET6)
sock.connect((host, 22))
sock.close()
return
except socket.error:
pass
sock.close()

time.sleep(1)



Loading…
Cancel
Save