From 30f59c4f2bcc7ba4dd684386862a55cadb0ed017 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Thu, 3 Oct 2019 18:36:51 +0300 Subject: [PATCH] forgot to add return --- .../post_breach/actions/communicate_as_new_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/post_breach/actions/communicate_as_new_user.py b/monkey/infection_monkey/post_breach/actions/communicate_as_new_user.py index 5c1af693a..04dff1441 100644 --- a/monkey/infection_monkey/post_breach/actions/communicate_as_new_user.py +++ b/monkey/infection_monkey/post_breach/actions/communicate_as_new_user.py @@ -50,7 +50,7 @@ class CommunicateAsNewUser(PBA): @staticmethod def get_commandline_for_ping(domain=PING_TEST_DOMAIN, is_windows=is_windows_os()): format_string = "PING.exe {domain} -n 1" if is_windows else "ping -c 1 {domain}" - format_string.format(domain=domain) + return format_string.format(domain=domain) def send_ping_result_telemetry(self, exit_status, commandline, username): """