Skip to content

Commit b68748f

Browse files
authored
Reverting changes made to password and server configuration
1 parent b94b251 commit b68748f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module "labels" {
3030
##-----------------------------------------------------------------------------
3131

3232
resource "random_password" "main" {
33-
count = var.create_password ? 1 : 0
33+
count = var.admin_password == null ? 1 : 0
3434
length = var.admin_password_length
3535
min_upper = 4
3636
min_lower = 2
@@ -119,7 +119,7 @@ resource "azurerm_mysql_flexible_database" "main" {
119119
##-----------------------------------------------------------------------------
120120

121121
resource "azurerm_mysql_flexible_server_configuration" "main" {
122-
count = var.enabled && var.server_parameters_enabled ? length(var.server_configuration_names) : 0
122+
count = var.enabled && ? length(var.server_configuration_names) : 0
123123
name = element(var.server_configuration_names, count.index)
124124
resource_group_name = local.resource_group_name
125125
server_name = join("", azurerm_mysql_flexible_server.main.*.name)

0 commit comments

Comments
 (0)