def _get_entries_list(item, step, action):
    """Returns list of entries which need the action to be applied on step (runtest_call/teardown).

    """
    entries_dict = {}
    entries_list = []
    if step in item.keywords.keys():
        entries_dict = item.keywords[step]
        if action in entries_dict:
            entries_list = entries_dict[action]
    return entries_list