Exemple #1
0
def default_template(user1):
    tmpl = Template(
        name="test_default_template",
        provider=VE_PROVIDER.DOCKER,
        status=TEMPLATE_STATUS.UNCHECKED,
        description="old_desc",
        content="",
        template_args={},
        docker_image="ubuntu",
        network_configs=[],
        virtual_environment_count=0,
        creator=user1,
    )
    tmpl.save()
    return tmpl