From 9a1b5b67b54b4bc54cbeae36599221e435369a71 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 19 Sep 2022 11:46:45 -0400 Subject: [PATCH] Agent: Default self._relay to None --- monkey/infection_monkey/monkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 9bb9ef62c..eaec7e6bf 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -5,7 +5,7 @@ import subprocess import sys from ipaddress import IPv4Address, IPv4Interface from pathlib import Path, WindowsPath -from typing import List +from typing import List, Optional from pubsub.core import Publisher @@ -123,7 +123,7 @@ class InfectionMonkey: self._telemetry_messenger = LegacyTelemetryMessengerAdapter() self._current_depth = self._opts.depth self._master = None - self._relay: TCPRelay + self._relay: Optional[TCPRelay] = None @staticmethod def _get_arguments(args):