Skip to content

Commit

Permalink
fix: dryr-run command and environment names containing digits
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul B committed Sep 11, 2017
1 parent 624ef39 commit 3b92f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ list: ## make list # List infra resources
@bash terraform.sh show $(opts)

.PHONY: dry-run
dry-run: pass ## make dry-run # Dry run resources changes
dry-run: ## make dry-run # Dry run resources changes
@bash terraform.sh plan $(opts)

.PHONY: run
Expand Down
2 changes: 1 addition & 1 deletion terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

valid_identifier()
{
echo "$1" | tr '[:lower:]' '[:upper:]' | tr -cs '[:alpha:]\n' '_'
echo "$1" | tr '[:lower:]' '[:upper:]' | tr -cs '[:alpha:][:digit:]\n' '_'
}

key="$(valid_identifier "${provider}")_$(valid_identifier "${env}")_KEY"
Expand Down

0 comments on commit 3b92f79

Please sign in to comment.