Merge pull request #386 from yuryninog/yuryninog-patch-1
Remove location from local.prefix
This commit is contained in:
commit
119973dba8
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue