Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3e724d

Browse files
0x416d616ebryantbiggs
andauthored
fix: Modify BitBucket provider URL extraction to be more robust when none or multiple URLs are provided (#605)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent b850a60 commit e3e724d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎modules/iam-role/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ locals {
1010
partition = try(data.aws_partition.current[0].partition, "")
1111

1212
oidc_providers = [for url in var.oidc_provider_urls : replace(url, "https://", "")]
13-
bitbucket_provider = one(local.oidc_providers)
13+
bitbucket_provider = try(element(local.oidc_providers, 0), null)
1414
}
1515

1616
################################################################################

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /