Skip to content

Commit

Permalink
fix: Correct dependencies when upgrade is disabled (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
naormatania authored Aug 4, 2021
1 parent 6f1f479 commit 129b31c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ resource "null_resource" "upgrade" {

resource "null_resource" "additional_components" {
count = var.enabled && length(var.additional_components) > 0 ? 1 : 0
depends_on = [null_resource.upgrade]
depends_on = [null_resource.decompress, null_resource.upgrade]

triggers = merge({
md5 = md5(var.create_cmd_entrypoint)
Expand All @@ -179,7 +179,7 @@ resource "null_resource" "additional_components" {

resource "null_resource" "gcloud_auth_service_account_key_file" {
count = var.enabled && length(var.service_account_key_file) > 0 ? 1 : 0
depends_on = [null_resource.upgrade]
depends_on = [null_resource.decompress, null_resource.upgrade]

triggers = merge({
md5 = md5(var.create_cmd_entrypoint)
Expand All @@ -195,7 +195,7 @@ resource "null_resource" "gcloud_auth_service_account_key_file" {

resource "null_resource" "gcloud_auth_google_credentials" {
count = var.enabled && var.use_tf_google_credentials_env_var ? 1 : 0
depends_on = [null_resource.upgrade]
depends_on = [null_resource.decompress, null_resource.upgrade]

triggers = merge({
md5 = md5(var.create_cmd_entrypoint)
Expand Down

0 comments on commit 129b31c

Please sign in to comment.