From c6ed8e6d2eae861e447d9285a3e5268fde3f5278 Mon Sep 17 00:00:00 2001 From: Aris van Ommeren Date: Fri, 15 Oct 2021 18:16:31 +0200 Subject: [PATCH] Fix comments: `azuread_authentication_only` instead of `azuread_only_authentication` --- internal/services/mssql/mssql_server_resource.go | 6 +++--- internal/services/mssql/mssql_server_resource_test.go | 2 +- website/docs/r/mssql_server.html.markdown | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/services/mssql/mssql_server_resource.go b/internal/services/mssql/mssql_server_resource.go index 704c33320df0..c8342c9a01da 100644 --- a/internal/services/mssql/mssql_server_resource.go +++ b/internal/services/mssql/mssql_server_resource.go @@ -104,7 +104,7 @@ func resourceMsSqlServer() *pluginsdk.Resource { ValidateFunc: validation.IsUUID, }, - "azuread_only_authentication": { + "azuread_authentication_only": { Type: pluginsdk.TypeBool, Optional: true, Computed: true, @@ -529,7 +529,7 @@ func expandMsSqlServerAADOnlyAuthentictions(input []interface{}) bool { return false } admin := input[0].(map[string]interface{}) - if v, ok := admin["azuread_only_authentication"]; ok && v != nil { + if v, ok := admin["azuread_authentication_only"]; ok && v != nil { return v.(bool) } return false @@ -605,7 +605,7 @@ func flatternMsSqlServerAdministrators(admin sql.ServerExternalAdministrator) [] "login_username": login, "object_id": sid, "tenant_id": tid, - "azuread_only_authentication": aadOnlyAuthentictionsEnabled, + "azuread_authentication_only": aadOnlyAuthentictionsEnabled, }, } } diff --git a/internal/services/mssql/mssql_server_resource_test.go b/internal/services/mssql/mssql_server_resource_test.go index 4bd42e7e180d..d614cc9667d4 100644 --- a/internal/services/mssql/mssql_server_resource_test.go +++ b/internal/services/mssql/mssql_server_resource_test.go @@ -635,7 +635,7 @@ resource "azurerm_mssql_server" "test" { azuread_administrator { login_username = "AzureAD Admin2" object_id = data.azuread_service_principal.test.id - azuread_only_authentication = true + azuread_authentication_only = true } } `, data.RandomInteger, data.Locations.Primary, os.Getenv("ARM_CLIENT_ID")) diff --git a/website/docs/r/mssql_server.html.markdown b/website/docs/r/mssql_server.html.markdown index cd77fa70dd47..60eddccd3c3b 100644 --- a/website/docs/r/mssql_server.html.markdown +++ b/website/docs/r/mssql_server.html.markdown @@ -130,7 +130,7 @@ An `azuread_administrator` block supports the following: * `tenant_id` - (Optional) The tenant id of the Azure AD Administrator of this SQL Server. -* `azuread_only_authentication` - (Optional) Specifies whether only AD Users and administrators (like `azuread_administrator.0.login_username`) can be used to login or also local database users (like `administrator_login`). +* `azuread_authentication_only` - (Optional) Specifies whether only AD Users and administrators (like `azuread_administrator.0.login_username`) can be used to login or also local database users (like `administrator_login`). ---