cookiecutter-openedx / cookiecutter-openedx-devops

Open edX Tutor on Kubernetes implemented with Terraform
GNU Affero General Public License v3.0
41 stars 16 forks source link

Bug fix: Unexpected Jinja TemplateSyntaxError in kubernetes.tf for Missing Conditional Closing Tags #67

Closed cinthiaro closed 5 months ago

cinthiaro commented 5 months ago

Type of Change

Describe Changes

Fix the unexpected Jinja TemplateSyntaxError in kubernetes.tf for Missing Conditional Closing Tags when you execute cookiecutter.

Error:


Traceback (most recent call last): 
  ...
  File "terraform/environments/modules/mysql/kubernetes.tf", line 204, in template
jinja2.exceptions.TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.
  File "terraform/environments/modules/mysql/kubernetes.tf", line 204
    }{% endif %}```
lpm0073 commented 5 months ago

Hello Cinthia and thank you for the PR. i somehow didn't see this until just now and coincidentally yesterday i ran into and fixed this same bug. but nonetheless, i'm going to attempt to merge you pr now in order credit you with the fix. fingers crossed!