Skip to content

Commit

Permalink
Use required providers version from constants.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Nov 16, 2024
1 parent 0c31bf3 commit b6a5714
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/_nebari/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@
AZURE_DEFAULT_REGION = "Central US"
GCP_DEFAULT_REGION = "us-central1"
DO_DEFAULT_REGION = "nyc3"

# TERRAFORM REQUIRED PROVIDERS
REQUIRED_PROVIDERS = {
"null": {
"_name": "null",
"source": "hashicorp/null",
"version": "3.2.3",
}
}
2 changes: 1 addition & 1 deletion src/_nebari/stages/tf_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def NebariTerraformState(directory: str, nebari_config: schema.Main):


def NebariTerraformRequiredProvider(nebari_config: schema.Main):
return RequiredProvider("null", source="hashicorp/null", version="3.2.3")
return RequiredProvider(**constants.REQUIRED_PROVIDERS["null"])


def NebariTerraformRequiredVersion(nebari_config: schema.Main):
Expand Down

0 comments on commit b6a5714

Please sign in to comment.