Merge pull request #386 from yuryninog/yuryninog-patch-1

Remove location from local.prefix
This commit is contained in:
Julio Castillo 2022-01-03 17:09:35 +01:00 committed by GitHub
commit 119973dba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ locals {
prefix = (
var.prefix == null || var.prefix == "" # keep "" for backward compatibility
? ""
: join("-", [var.prefix, lower(var.location), ""])
: "${var.prefix}-"
)
notification = try(var.notification_config.enabled, false)
}

View File

@ -33,7 +33,7 @@ def test_buckets(plan_runner):
def test_prefix(plan_runner):
"Test bucket name when prefix is set."
_, resources = plan_runner(FIXTURES_DIR, prefix='foo')
assert resources[0]['values']['name'] == 'foo-eu-bucket-a'
assert resources[0]['values']['name'] == 'foo-bucket-a'
def test_config_values(plan_runner):