Skip to content

Commit

Permalink
fix: update powervs var local files
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Oct 30, 2023
1 parent bf0a626 commit c9119ba
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ locals {
) ? true : false)

# ibmcloud_region = replace(var.ibmcloud_vpc_availability_zone, "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[var.ibmcloud_powervs_location], "/-[0-9]/", "")
ibmcloud_region = replace(var.map_ibm_powervs_to_vpc_az[lower(var.ibmcloud_powervs_location)], "/-[0-9]/", "")

# Ensure lowercase to avoid API case-sensitive errors such as "pcloudNetworksPostForbidden Code 403 Error crn regionZone WDC06 is not supported under the current region"
ibmcloud_powervs_region = lower(var.map_ibm_powervs_location_to_powervs_region[lower(var.ibmcloud_powervs_location)])

# Directories start with "C:..." on Windows; All other OSs use "/" for root.
detect_windows = substr(pathexpand("~"), 0, 1) == "/" ? false : true
Expand Down

0 comments on commit c9119ba

Please sign in to comment.