-
Notifications
You must be signed in to change notification settings - Fork 34
Conversation
@@ -6,10 +6,10 @@ resource "random_integer" "this" { | |||
locals { | |||
account_name = coalesce(var.account_name, "azure-openai-${random_integer.this.result}") | |||
custom_subdomain_name = coalesce(var.custom_subdomain_name, "azure-openai-${random_integer.this.result}") | |||
tags = var.default_tags_enabled ? { | |||
tags = merge(var.default_tags_enabled ? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soferreira do we want to give the possibility to add additional tags also when the default tags are enabled ? Or this version of the logic works ?
@JinLee794 feedback is welcome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait, I misunderstood the code.
I understand now correctly that var.tags
is always merged in the tags, regarless of the value of var.default_tags_enabled
.
Looks good to me !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Describe your changes
Issue number
#35
Checklist before requesting a review
CHANGELOG.md
fileThanks for your cooperation!