'Filter out actions that should not be processed if a binary download succeeded.'

def filter_actions_after_binary_installation(self, actions):

    filtered_actions = []
    for action in actions:
        (action_type, action_dict) = action
        if (action_type in ['set_environment', 'chmod', 'download_binary']):
            filtered_actions.append(action)
    return filtered_actions
