lists: ensure correct pool is used for each list

This commit is contained in:
Iain Learmonth 2022-09-27 09:22:57 +01:00
parent 339b02d815
commit ba2894c697
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ class ListGithubAutomation(ListAutomation):
repository = data.github_repository.repository_{{ list.id }}.name
branch = "{{ list.branch }}"
file = "{{ list.filename }}"
content = file("{{ list.format }}.{{ list.encoding }}")
content = file("{{ list.format }}.{{ list.pool.pool_name }}.{{ list.encoding }}")
commit_message = "Managed by Terraform"
commit_author = "Terraform User"
commit_email = "terraform@api.otf.is"

View file

@ -43,7 +43,7 @@ class ListGitlabAutomation(ListAutomation):
project = data.gitlab_project.project_{{ list.id }}.id
file_path = "{{ list.filename }}"
branch = "{{ list.branch }}"
content = base64encode(file("{{ list.format }}.{{ list.encoding }}"))
content = base64encode(file("{{ list.format }}.{{ list.pool.pool_name }}.{{ list.encoding }}"))
author_email = "{{ gitlab_author_email }}"
author_name = "{{ gitlab_author_name }}"
commit_message = "{{ gitlab_commit_message }}"

View file

@ -40,7 +40,7 @@ class ListS3Automation(ListAutomation):
key = "{{ list.filename }}"
source = "{{ list.format }}.json"
content_type = "application/json"
etag = filemd5("{{ list.format }}.{{ list.encoding }}")
etag = filemd5("{{ list.format }}.{{ list.pool.pool_name }}.{{ list.encoding }}")
}
{% endfor %}
"""