Skip to content

Commit

Permalink
do not remove state files when running the example
Browse files Browse the repository at this point in the history
  • Loading branch information
dikhan committed Aug 28, 2018
1 parent c392f34 commit c39756a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ define run_terraform_example

@echo "[INFO] Performing sanity check against the service provider's swagger endpoint '$(OTF_VAR_SWAGGER_URL)'"
@$(eval SWAGGER_HTTP_STATUS := $(shell curl -s -o /dev/null -w '%{http_code}' $(OTF_VAR_SWAGGER_URL) -k))
@rm -f ./examples/$(PROVIDER_NAME)/terraform.tfstate
@if [ "$(SWAGGER_HTTP_STATUS)" = 200 ]; then\
echo "[INFO] Terraform Configuration file located at $(TF_EXAMPLE_FOLDER)";\
echo "[INFO] Executing TF command: OTF_INSECURE_SKIP_VERIFY=true OTF_VAR_$(PROVIDER_NAME)_SWAGGER_URL=$(OTF_VAR_SWAGGER_URL) && terraform init && terraform ${TF_CMD}";\
Expand Down

0 comments on commit c39756a

Please sign in to comment.