From 144e314edcc8793307b5515d0243120b6850d71e Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 27 Aug 2020 10:16:58 +0530 Subject: [PATCH] Tiny fix to work on Windows --- .../post_breach/actions/clear_command_history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/post_breach/actions/clear_command_history.py b/monkey/infection_monkey/post_breach/actions/clear_command_history.py index e2286c8ab..afd26996f 100644 --- a/monkey/infection_monkey/post_breach/actions/clear_command_history.py +++ b/monkey/infection_monkey/post_breach/actions/clear_command_history.py @@ -13,7 +13,8 @@ class ClearCommandHistory(PBA): def run(self): results = [pba.run() for pba in self.clear_command_history_PBA_list()] - PostBreachTelem(self, results).send() + if results: + PostBreachTelem(self, results).send() def clear_command_history_PBA_list(self): return self.CommandHistoryPBAGenerator().get_clear_command_history_pbas()