Skip to content

Commit

Permalink
Adapt count parser to tf 0.15.5 (#925)
Browse files Browse the repository at this point in the history
* Adapt count parser to tf 0.15.5

* Fix build
  • Loading branch information
yorinasub17 authored Jun 11, 2021
1 parent eb13c38 commit e4f4b36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ env: &env
GRUNTWORK_INSTALLER_VERSION: v0.0.36
MODULE_CI_VERSION: v0.33.3
MODULE_GCP_CI_VERSION: v0.1.1
TERRAFORM_VERSION: 0.15.0
TERRAFORM_VERSION: 0.15.5
TERRAGRUNT_VERSION: v0.28.24
PACKER_VERSION: 1.6.6
GO_VERSION: 1.16.3
Expand Down
2 changes: 1 addition & 1 deletion modules/terraform/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
applyRegexp = `Apply complete! Resources: (\d+) added, (\d+) changed, (\d+) destroyed\.`
destroyRegexp = `Destroy complete! Resources: (\d+) destroyed\.`
planWithChangesRegexp = `(\033\[1m)?Plan:(\033\[0m)? (\d+) to add, (\d+) to change, (\d+) to destroy\.`
planWithNoChangesRegexp = `No changes\. Infrastructure is up-to-date\.`
planWithNoChangesRegexp = `No changes\. (Infrastructure is up-to-date)|(Your infrastructure matches the configuration)\.`
)

const getResourceCountErrMessage = "Can't parse Terraform output"
Expand Down
2 changes: 1 addition & 1 deletion modules/terraform/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestInitAndPlanWithNoError(t *testing.T) {
InitAndApply(t, options)
out, err := PlanE(t, options)
require.NoError(t, err)
require.Contains(t, out, "No changes. Infrastructure is up-to-date.")
require.Contains(t, out, "No changes.")
}

func TestInitAndPlanWithOutput(t *testing.T) {
Expand Down

0 comments on commit e4f4b36

Please sign in to comment.