Skip to content

Commit

Permalink
Merge pull request #4 from paulRbr/fixes
Browse files Browse the repository at this point in the history
fix: dryr-run command and environment names containing digits
  • Loading branch information
paulRbr authored Sep 11, 2017
2 parents 624ef39 + 3b92f79 commit ab9cfac
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 ab9cfac

Please sign in to comment.