Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Support Terraform v0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
yupwei68 authored Mar 20, 2020
1 parent 21c5f56 commit 2a6409f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/validate/static_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ def lint_tf
if ENV['TERRAFORM_VERSION'].nil? || ENV['TERRAFORM_VERSION'].start_with?("0.11.")
message = `terraform validate -check-variables=false 2>&1`
elsif ENV['TERRAFORM_VERSION'].start_with?("0.12.")
message = `terraform validate >/dev/null`
success = system ("terraform init")
if not success
raise "ERROR: terraform init failed!\n".red
end
message = `terraform validate ./ >/dev/null`
end

# Check the linting message.
Expand Down
2 changes: 1 addition & 1 deletion tool/env_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
fi

# Version, OS and Arch for Terraform.
TERRAFORM_VERSION="0.11.7"
TERRAFORM_VERSION="0.12.20"
# Version for Ruby SDK.
RUBY_VERSION="2.3.3"
RUBY_INSTALLED_VERSION_REGEX="^(ruby) ([0-9].[0-9].[0-9]p[0-9]+)"
Expand Down

0 comments on commit 2a6409f

Please sign in to comment.