Skip to content

Commit

Permalink
Merge pull request #1338 from snyk/chore/capitalize-terraform
Browse files Browse the repository at this point in the history
Capitalize terraform in output
  • Loading branch information
sundowndev authored Jan 31, 2022
2 parents 97595bb + 0a1ed7d commit 4051e58
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func run() int {
if checkVersion {
newVersion := <-latestVersionChan
if newVersion != "" {
_, _ = fmt.Fprintln(os.Stderr, "\n\nYour version of driftctl is outdated, please upgrade !")
_, _ = fmt.Fprintln(os.Stderr, "\n\nYour version of driftctl is outdated, please upgrade!")
_, _ = fmt.Fprintf(os.Stderr, "Current: %s; Latest: %s\n", version.Current(), newVersion)
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (c Console) writeSummary(analysis *analyser.Analysis) {
if analysis.Summary().TotalManaged > 0 {
managed = warningWriter.Sprintf("%d", analysis.Summary().TotalManaged)
}
fmt.Printf(" - %s resource(s) managed by terraform\n", managed)
fmt.Printf(" - %s resource(s) managed by Terraform\n", managed)

drifted := successWriter.Sprintf("0")
if analysis.Summary().TotalDrifted > 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Found changed resources:
- a: "oldValue" => <nil>
Found 10 resource(s)
- 20% coverage
- 2 resource(s) managed by terraform
- 2 resource(s) managed by Terraform
- 2/2 resource(s) out of sync with Terraform state
- 4 resource(s) not managed by Terraform
- 4 resource(s) found in a Terraform state but missing on the cloud provider
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output_computed_fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Found changed resources:
~ struct.0.string: "one" => "two" (computed)
Found 1 resource(s)
- 100% coverage
- 1 resource(s) managed by terraform
- 1 resource(s) managed by Terraform
- 1/1 resource(s) out of sync with Terraform state
- 0 resource(s) not managed by Terraform
- 0 resource(s) found in a Terraform state but missing on the cloud provider
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output_empty_attributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Found resources not covered by IaC:
- duysgkfdjfdgfhd
Found 3 resource(s)
- 33% coverage
- 1 resource(s) managed by terraform
- 1 resource(s) managed by Terraform
- 0/1 resource(s) out of sync with Terraform state
- 1 resource(s) not managed by Terraform
- 1 resource(s) found in a Terraform state but missing on the cloud provider
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output_json_fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Found changed resources:

Found 2 resource(s)
- 100% coverage
- 2 resource(s) managed by terraform
- 2 resource(s) managed by Terraform
- 2/2 resource(s) out of sync with Terraform state
- 0 resource(s) not managed by Terraform
- 0 resource(s) found in a Terraform state but missing on the cloud provider
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output_stringer_resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Found changed resources:
~ Name: "" => "resource with diff"
Found 3 resource(s)
- 33% coverage
- 1 resource(s) managed by terraform
- 1 resource(s) managed by Terraform
- 1/1 resource(s) out of sync with Terraform state
- 1 resource(s) not managed by Terraform
- 1 resource(s) found in a Terraform state but missing on the cloud provider
2 changes: 1 addition & 1 deletion pkg/cmd/scan/output/testdata/output_without_deep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Found resources not covered by IaC:
- unmanaged-id-1
Found 1 resource(s)
- 0% coverage
- 0 resource(s) managed by terraform
- 0 resource(s) managed by Terraform
- 1 resource(s) not managed by Terraform
- 0 resource(s) found in a Terraform state but missing on the cloud provider

0 comments on commit 4051e58

Please sign in to comment.