Skip to content

Commit 859a8ef

Browse files
authored
fix: added an additional check for the trusted profile payload (#111)
1 parent a9a83f2 commit 859a8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/eso-external-secret/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ locals {
6767
"username" : "iamapikey", "password" : "{{ .secretid_${index} }}", "email" : (element.es_container_registry_email)
6868
}
6969
:
70-
(element.trusted_profile != null && element.trusted_profile != "") ?
70+
(element.trusted_profile != null && element.trusted_profile != "" && var.sm_secret_type == "trusted_profile") ?
7171
{
7272
"username" : element.trusted_profile, "password" : "{{ .secretid_${index} }}"
7373
} :

0 commit comments

Comments
 (0)