Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Oct 30, 2019
1 parent d5674cf commit e791465
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/project_services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Expected variables:

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| 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 |
| enable | Actually enable the APIs listed | string | `"true"` | no |
| project\_id | The GCP project you want to enable APIs on | string | n/a | yes |

## Outputs
Expand Down
4 changes: 2 additions & 2 deletions examples/project_services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
Provider configuration
*****************************************/
provider "google" {
version = "~> 2.18.1"
version = "~> 2.18.1"
}

provider "google-beta" {
version = "~> 2.18.1"
version = "~> 2.18.1"
}

module "project-services" {
Expand Down
2 changes: 1 addition & 1 deletion examples/project_services/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ variable "project_id" {

variable "enable" {
description = "Actually enable the APIs listed"
default = true
default = true
}
6 changes: 3 additions & 3 deletions modules/project_services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

locals {
api_set = var.enable_apis ? toset(var.activate_apis) : []
}
locals {
api_set = var.enable_apis ? toset(var.activate_apis) : []
}

/******************************************
APIs configuration
Expand Down
2 changes: 1 addition & 1 deletion modules/project_services/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

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

0 comments on commit e791465

Please sign in to comment.