def calc_is_command_successful(self, exclude=False, should_fail=False):
        """
        Verifying the command output indicates success. It's done by searching for keywords in the result
        :param exclude: If true, will verify the keywords do not exist in the command result
        :param should_fail: If true, will just return false and not run any further verification
        :return: True if successful otherwise False.
        """
        if self.command_result_err is None and self.command_result is not None and should_fail is not True:
            self.command_result = str(self.command_result)
            for key_word in self.result_keywords_array:
                key_word = str(key_word)
                if exclude:
                    if key_word in self.command_result:
                        self.fault_keyword = key_word
                        return False
                elif key_word not in self.command_result:
                    self.fault_keyword = key_word
                    return False
            return True
        return False

        Verifying the command output indicates success. It's done by searching for keywords in the result
        :param exclude: If true, will verify the keywords do not exist in the command result
        :param should_fail: If true, will just return false and not run any further verification
        :return: True if successful otherwise False.
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py