We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e9f70 commit 5436f0dCopy full SHA for 5436f0d
monkey/infection_monkey/monkey.py
@@ -214,17 +214,17 @@ def _log_arguments(args):
214
logger.info(f"Agent started with arguments: {arg_string}")
215
216
def start(self):
217
+ should_stop = self._control_channel.should_agent_stop()
218
+ if should_stop:
219
+ logger.info("The Monkey Island has instructed this agent to stop")
220
+ return
221
+
222
self._setup_agent_event_forwarder()
223
self._agent_event_forwarder.start()
224
self._plugin_event_forwarder.start()
225
226
logger.info("Agent is starting...")
227
- should_stop = self._control_channel.should_agent_stop()
- if should_stop:
- logger.info("The Monkey Island has instructed this agent to stop")
- return
-
228
operating_system = self._discover_os()
229
self._discover_hostname()
230
0 commit comments