Skip to content

Commit

Permalink
chore: allow empty weka_version when install_weka_url is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
assafgi committed Aug 26, 2024
1 parent 2dc397c commit dca8e74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ resource "azurerm_linux_function_app" "function_app" {
condition = local.read_remote_function_zip || var.deployment_function_app_code_blob != ""
error_message = "You should provide value for 'deployment_function_app_code_blob' or 'read_function_zip_from_storage_account' should be false"
}

precondition {
condition = var.install_weka_url != "" || var.weka_version != ""
error_message = "Please provide either 'install_weka_url' or 'weka_version' variables."
}
}

depends_on = [module.network, module.iam, azurerm_storage_account.deployment_sa, azurerm_private_endpoint.file_endpoint, azurerm_private_endpoint.blob_endpoint]
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ variable "logic_app_identity_name" {
variable "weka_version" {
type = string
description = "The Weka version to deploy."
default = ""
}

variable "get_weka_io_token" {
Expand Down

0 comments on commit dca8e74

Please sign in to comment.