Skip to content

Commit

Permalink
modify string formatting to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Oct 21, 2024
1 parent 3503f8e commit 45ab601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/mssql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ output "primary" {
output "apphub_service_uri" {
value = {
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
service_id = substr(format("%s-%s", var.name, md5(var.project_id)), 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}
2 changes: 1 addition & 1 deletion modules/mysql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ output "env_vars" {
output "apphub_service_uri" {
value = {
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
service_id = substr(format("%s-%s", var.name, md5(var.project_id)), 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}
2 changes: 1 addition & 1 deletion modules/postgresql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ output "env_vars" {
output "apphub_service_uri" {
value = {
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
service_id = substr(format("%s-%s", var.name, md5(var.project_id)), 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}

0 comments on commit 45ab601

Please sign in to comment.