Skip to content

Commit

Permalink
CCM-5100: Fix use of source for _terraform rule
Browse files Browse the repository at this point in the history
  • Loading branch information
m-houston committed Jul 4, 2024
1 parent 4592aa7 commit 64744be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/terraform/terraform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ clean:: # Remove Terraform files (terraform) - optional: terraform_dir|dir=[path

_terraform: # Terraform command wrapper - mandatory: cmd=[command to execute]; optional: dir=[path to a directory where the command will be executed, relative to the project's top-level directory, default is one of the module variables or the example directory, if not set], opts=[options to pass to the Terraform command, default is none/empty]
dir=$(or ${dir}, ${TERRAFORM_STACK})
source scripts/terraform/terraform.lib.sh
terraform-${cmd} # 'dir' and 'opts' are accessible by the function as environment variables, if set
echo terraform-${cmd}
. scripts/terraform/terraform.lib.sh && terraform-${cmd} # 'dir' and 'opts' are accessible by the function as environment variables, if set

# ==============================================================================
# Quality checks - please DO NOT edit this section!
Expand Down

0 comments on commit 64744be

Please sign in to comment.