Skip to content

Commit

Permalink
fix: use relative paths in gcloud scripts (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Oct 15, 2021
1 parent 3fb2b90 commit 8f0b303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/agent-policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module "gcloud-upsert" {
platform = "linux"
additional_components = ["beta"]
gcloud_sdk_version = "325.0.0"
create_cmd_entrypoint = abspath("${path.module}/scripts/create-update-script.sh")
create_cmd_entrypoint = "${path.module}/scripts/create-update-script.sh"
create_cmd_body = <<-EOT
${var.project_id} ${jsonencode(var.policy_id)} \
${jsonencode(var.description == null ? "" : var.description)} \
Expand All @@ -40,6 +40,6 @@ module "gcloud-destroy" {
gcloud_sdk_version = "325.0.0"
additional_components = ["beta"]

destroy_cmd_entrypoint = abspath("${path.module}/scripts/delete-script.sh")
destroy_cmd_entrypoint = "${path.module}/scripts/delete-script.sh"
destroy_cmd_body = "${var.project_id} ${jsonencode(var.policy_id)}"
}

0 comments on commit 8f0b303

Please sign in to comment.