Skip to content

Commit

Permalink
remove 2nd render pass in jinja pass in render_database
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 12, 2023
1 parent 9add677 commit 5880bfe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ibek/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ def render_database(self, instance: Entity) -> Optional[str]:
jinja_template = Template(jinja_txt)
db_txt = jinja_template.render(instance.__dict__) # type: ignore

# run the result through jinja again so we can refer to args for arg defaults

db_template = Template(db_txt)
db_txt = db_template.render(instance.__dict__) # type: ignore

return db_txt + "\n"

def render_environment_variables(self, instance: Entity) -> Optional[str]:
Expand Down

0 comments on commit 5880bfe

Please sign in to comment.