Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.recipe.template
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • slapos.recipe.template
  • Merge requests
  • !5

jinja2: Prevent the 'once' option from overwriting the rendered file

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Xavier Thompson requested to merge xavier_thompson/slapos.recipe.template:template_without_overwrite into master Jan 06, 2021
  • Overview 13
  • Commits 1
  • Pipelines 0
  • Changes 2

This allows passing path of the rendered file as the 'once' option, which in turn means the template will be rendered only if the destination file doesn't already exist. Previously doing this would result in an empty rendered file.

Edited Jan 07, 2021 by Xavier Thompson
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: template_without_overwrite
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7