Skip to content

Commit

Permalink
Item: hitachienergy#58 Desc: Fix issue with terraform file helper
Browse files Browse the repository at this point in the history
  • Loading branch information
erzetpe committed Mar 29, 2019
1 parent 107305d commit 45fafde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/epicli/cli/helpers/terraform_file_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def generate_terraform_file(infrastructure, template_generator, template_generat
template_generator_config.
templates_paths)

if yaml_document.kind != "epiphany-cluster":
terraform_file_name = "{:03d}".format(idx + 1) + "_" + yaml_document.specification.name + ".tf"
if yaml_document["kind"] != "epiphany-cluster":
terraform_file_name = "{:03d}".format(idx + 1) + "_" + yaml_document["specification"]["name"] + ".tf"
else:
terraform_file_name = "000_" + yaml_document.name + ".tf"
terraform_file_name = "000_" + yaml_document["specification"]["name"] + ".tf"

terraform_output_file_path = os.path.join(terraform_build_directory, terraform_file_name)

Expand Down

0 comments on commit 45fafde

Please sign in to comment.