Skip to content

Commit

Permalink
fix: generation config var name in template
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Jun 6, 2024
1 parent efb18f4 commit 0e1587f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spacemk/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def generate(self,
data = self._load_data()
data = self._process_data(data)
self._generate_code(
data=data,
data=data,
extra_vars=extra_vars,
template_name=template_name,
generation_config=generation_config
Expand Down
2 changes: 1 addition & 1 deletion spacemk/templates/base.tf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ resource "spacelift_stack" "{{ stack._relationships.space._migration_id }}_{{ st
{{ argument("runner_image ", extra_vars.custom_terraform_runner_image ~ ":" ~ stack.terraform.version, required=True) }}
{% endif %}

{% if stack.vcs.provider == "github_custom" and generation.github.custom_app %}
{% if stack.vcs.provider == "github_custom" and generation_config.github.custom_app %}
github_enterprise {
{{ argument("namespace", stack.vcs.namespace) }}
}
Expand Down

0 comments on commit 0e1587f

Please sign in to comment.