'Create the Tags objects in the db.'

def _create_tags(self, context, instance_uuid, tags):

    if tags:
        tag_list = [tag.tag for tag in tags]
        instance_tags = objects.TagList.create(context, instance_uuid, tag_list)
        return instance_tags
    else:
        return tags
