Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
still not working as expected ..
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Oct 25, 2023
1 parent 135f67c commit b7ce2ee
Show file tree
Hide file tree
Showing 2 changed files with 7,525 additions and 2,478 deletions.
5 changes: 3 additions & 2 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,8 @@ def check_server_status(self, openstack_id: str) -> VM:
return self.get_server(openstack_id)
else:
server = self.get_server(openstack_id)
server.status = "PORT_CLOSED"
if server.status != "SHUTDOWN":
server.status = "PORT_CLOSED"
return server
elif serv["status"] == self.ERROR:
server = self.get_server(openstack_id)
Expand Down Expand Up @@ -2528,7 +2529,7 @@ def netcat(self, host, port):
"""
self.LOG.info(f"Checking SSH Connection {host}:{port}")
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
sock.settimeout(5000)
sock.settimeout(2500)
try:
r = sock.connect_ex((host, port))
self.LOG.info(f"Checking SSH Connection {host}:{port} Result = {r}")
Expand Down
Loading

0 comments on commit b7ce2ee

Please sign in to comment.