Skip to content

Commit

Permalink
Merge pull request #57 from mlinfra-io/56-bug-mlinfra-path-of-local-file
Browse files Browse the repository at this point in the history
Fixed abs path instead of relative path
  • Loading branch information
aliabbasjaffri authored Jan 31, 2024
2 parents 4467495 + d4004fb commit 89c6f02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import json

import yaml
from mlinfra import relative_project_root
from mlinfra import absolute_project_root
from mlinfra.enums.cloud_provider import CloudProvider
from mlinfra.stack_processor.deployment_processor.deployment import (
AbstractDeployment,
Expand All @@ -38,14 +38,14 @@ def __init__(

def configure_required_provider_config(self):
with open(
relative_project_root() / f"modules/cloud/{self.provider.value}/terraform.tf.json",
absolute_project_root() / f"modules/cloud/{self.provider.value}/terraform.tf.json",
"r",
) as data_json:
data = json.load(data_json)

# add random provider
with open(
relative_project_root() / "modules/terraform_providers/random/terraform.tf.json",
absolute_project_root() / "modules/terraform_providers/random/terraform.tf.json",
"r",
) as random_tf:
random_tf_json = json.load(random_tf)
Expand Down

0 comments on commit 89c6f02

Please sign in to comment.