From 94fd2a26d91535f9462ac4c197eb0e3176dbaf75 Mon Sep 17 00:00:00 2001
From: Mike Salvatore <mike.s.salvatore@gmail.com>
Date: Tue, 10 May 2022 13:37:44 -0400
Subject: [PATCH] Island: Remove disused AwsCmdResult

This was replaced by monkey_island.services.aws.AWSCommandResults.
---
 .../cc/server_utils/aws_cmd_result.py         | 29 -------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 monkey/monkey_island/cc/server_utils/aws_cmd_result.py

diff --git a/monkey/monkey_island/cc/server_utils/aws_cmd_result.py b/monkey/monkey_island/cc/server_utils/aws_cmd_result.py
deleted file mode 100644
index 0a6c5f3cc..000000000
--- a/monkey/monkey_island/cc/server_utils/aws_cmd_result.py
+++ /dev/null
@@ -1,29 +0,0 @@
-from common.cmd.cmd_result import CmdResult
-
-
-class AwsCmdResult(CmdResult):
-    """
-    Class representing an AWS command result
-    """
-
-    def __init__(self, command_info):
-        super(AwsCmdResult, self).__init__(
-            self.is_successful(command_info, True),
-            command_info["ResponseCode"],
-            command_info["StandardOutputContent"],
-            command_info["StandardErrorContent"],
-        )
-        self.command_info = command_info
-
-    @staticmethod
-    def is_successful(command_info, is_timeout=False):
-        """
-        Determines whether the command was successful. If it timed out and was still in progress,
-        we assume it worked.
-        :param command_info:    Command info struct (returned by ssm.get_command_invocation)
-        :param is_timeout:      Whether the given command timed out
-        :return:                True if successful, False otherwise.
-        """
-        return (command_info["Status"] == "Success") or (
-            is_timeout and (command_info["Status"] == "InProgress")
-        )