Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
fix: adapt resource name access
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Dec 6, 2020
1 parent 45cb3cd commit 940acec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions __tests__/test-tf-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
- set_fact:
containerapp__expose: "{{ containerapp__expose|default([]) + item.expose }}"
module_vars_test:
container:
terraform:
terraform:
provider:
resource_name: test_resource
when: item.expose is defined and item.expose not in containerapp__expose|default([])
with_items: "{{ app_config.domains }}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/nginx_steps/generate-serverblock-tf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
dest: "{{ stackhead__tf_project_folder }}/nginx_server_block.tf"
force: true
vars:
container_resource_name: "{{ lookup('vars', stackhead_config.container|getstackhead.stackhead.module_vars_name).container.terraform.resource_name }}"
container_resource_name: "{{ lookup('vars', stackhead_config.container|getstackhead.stackhead.module_vars_name).terraform.provider.resource_name }}"

0 comments on commit 940acec

Please sign in to comment.