mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
change from append to new slice
Signed-off-by: yottta <andrei.ciobanu@opentofu.org>
This commit is contained in:
parent
ca2dc7bc39
commit
923d00550b
@ -772,9 +772,9 @@ func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics {
|
||||
}
|
||||
|
||||
if value := obj.GetAttr("assume_role"); !value.IsNull() {
|
||||
cfg.AssumeRole = append(cfg.AssumeRole, configureNestedAssumeRole(obj))
|
||||
cfg.AssumeRole = []awsbase.AssumeRole{configureNestedAssumeRole(obj)}
|
||||
} else if value := obj.GetAttr("role_arn"); !value.IsNull() {
|
||||
cfg.AssumeRole = append(cfg.AssumeRole, configureAssumeRole(obj))
|
||||
cfg.AssumeRole = []awsbase.AssumeRole{configureAssumeRole(obj)}
|
||||
}
|
||||
|
||||
if val := obj.GetAttr("assume_role_with_web_identity"); !val.IsNull() {
|
||||
|
Loading…
Reference in New Issue
Block a user