Skip to content

Commit

Permalink
module update
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarvna committed Jun 19, 2021
1 parent a93686b commit bc147f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ resource "azurerm_sql_server" "primary" {
location = local.location
version = "12.0"
administrator_login = var.admin_username == null ? "sqladmin" : var.admin_username
administrator_login_password = var.admin_password == null ? random_password.main.0.result : var.admin_password
administrator_login_password = var.admin_password == null ? random_password.main.result : var.admin_password
tags = merge({ "Name" = format("%s-primary", var.sqlserver_name) }, var.tags, )

dynamic "identity" {
Expand Down Expand Up @@ -119,7 +119,7 @@ resource "azurerm_sql_server" "secondary" {
location = var.secondary_sql_server_location
version = "12.0"
administrator_login = var.admin_username == null ? "sqladmin" : var.admin_username
administrator_login_password = var.admin_password == null ? random_password.main.0.result : var.admin_password
administrator_login_password = var.admin_password == null ? random_password.main.result : var.admin_password
tags = merge({ "Name" = format("%s-secondary", var.sqlserver_name) }, var.tags, )

dynamic "identity" {
Expand Down

0 comments on commit bc147f5

Please sign in to comment.