'Substitute variables in lists. Return new list.'

def resolve_resource_list(self, list_data):

    new_list = []
    for item in list_data:
        new_list.append(string.Template(item).substitute(self.host_vars))
    return new_list
