Skip to content

Commit e791465

Browse files
committed
Fix linters
1 parent d5674cf commit e791465

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/project_services/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Expected variables:
1111

1212
| Name | Description | Type | Default | Required |
1313
|------|-------------|:----:|:-----:|:-----:|
14-
| credentials\_path | Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials. | string | `""` | no |
14+
| enable | Actually enable the APIs listed | string | `"true"` | no |
1515
| project\_id | The GCP project you want to enable APIs on | string | n/a | yes |
1616

1717
## Outputs

examples/project_services/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
Provider configuration
1919
*****************************************/
2020
provider "google" {
21-
version = "~> 2.18.1"
21+
version = "~> 2.18.1"
2222
}
2323

2424
provider "google-beta" {
25-
version = "~> 2.18.1"
25+
version = "~> 2.18.1"
2626
}
2727

2828
module "project-services" {

examples/project_services/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ variable "project_id" {
2020

2121
variable "enable" {
2222
description = "Actually enable the APIs listed"
23-
default = true
23+
default = true
2424
}

modules/project_services/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
locals {
18-
api_set = var.enable_apis ? toset(var.activate_apis) : []
19-
}
17+
locals {
18+
api_set = var.enable_apis ? toset(var.activate_apis) : []
19+
}
2020

2121
/******************************************
2222
APIs configuration

modules/project_services/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
output "project_id" {
1818
description = "The GCP project you want to enable APIs on"
19-
value = var.enable_apis ? element([for v in google_project_service.project_services : v.project], 0) : var.project_id
19+
value = var.enable_apis ? element([for v in google_project_service.project_services : v.project], 0) : var.project_id
2020
}

0 commit comments

Comments
 (0)