Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
Fix unknown referenced variable bug
Browse files Browse the repository at this point in the history
Co-authored-by: Wayne Adams <[email protected]>
Co-authored-by: Maria Shaldybin <[email protected]>
  • Loading branch information
wayneadams and mariash committed Sep 10, 2020
1 parent 1cc3032 commit dc4262f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/ops_manager/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "google_dns_record_set" "optional-ops-manager-dns" {
name = "pcf-optional.${var.dns_zone_dns_name}"
type = "A"
ttl = 300
count = "${min(length(split("", var.optional_opsman_image_url)),1)}"
count = "${min(length(split("", var.optional_opsman_image)),1)}"

managed_zone = "${var.dns_zone_name}"

Expand Down
2 changes: 1 addition & 1 deletion modules/ops_manager/eip.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ resource "google_compute_address" "ops-manager-ip" {

resource "google_compute_address" "optional-ops-manager-ip" {
name = "${var.env_name}-optional-ops-manager-ip"
count = "${min(length(split("", var.optional_opsman_image_url)),1)}"
count = "${min(length(split("", var.optional_opsman_image)),1)}"
}
2 changes: 1 addition & 1 deletion modules/ops_manager/optional_instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "google_compute_instance" "optional-ops-manager" {
name = "${var.env_name}-optional-ops-manager"
machine_type = "${var.opsman_machine_type}"
zone = "${element(var.zones, 1)}"
count = "${min(length(split("", var.optional_opsman_image_url)),1)}"
count = "${min(length(split("", var.optional_opsman_image)),1)}"
tags = ["${var.env_name}-ops-manager-external"]

timeouts {
Expand Down
2 changes: 1 addition & 1 deletion modules/ops_manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variable "opsman_machine_type" {}
variable "opsman_storage_bucket_count" {}
variable "opsman_image" {}

variable "optional_opsman_image_url" {
variable "optional_opsman_image" {
default = ""
}

Expand Down
2 changes: 1 addition & 1 deletion terraforming-pas/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "ops_manager" {

opsman_machine_type = "${var.opsman_machine_type}"
opsman_image = "${var.opsman_image}"
optional_opsman_image_url = "${var.optional_opsman_image_url}"
optional_opsman_image = "${var.optional_opsman_image}"
create_iam_service_account_members = "${var.create_iam_service_account_members}"

pcf_network_name = "${module.infra.network}"
Expand Down

0 comments on commit dc4262f

Please sign in to comment.