Agent: Let InfectionMonkey._cmd_island_port stay a str

No part of the code in InfectionMonkey requires _cmd_island_port to be an int now
This commit is contained in:
Shreya Malviya 2022-09-26 18:19:49 +05:30
parent 8a609e0871
commit 0ae653fb72
1 changed files with 0 additions and 2 deletions

View File

@ -119,9 +119,7 @@ class InfectionMonkey:
self._agent_event_serializer_registry = self._setup_agent_event_serializers() self._agent_event_serializer_registry = self._setup_agent_event_serializers()
server, self._island_api_client = self._connect_to_island_api() server, self._island_api_client = self._connect_to_island_api()
# TODO: `address_to_port()` should return the port as an integer.
self._cmd_island_ip, self._cmd_island_port = address_to_ip_port(server) self._cmd_island_ip, self._cmd_island_port = address_to_ip_port(server)
self._cmd_island_port = int(self._cmd_island_port)
self._island_address = SocketAddress(self._cmd_island_ip, self._cmd_island_port) self._island_address = SocketAddress(self._cmd_island_ip, self._cmd_island_port)