Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m committed Aug 16, 2024
1 parent 8594d84 commit e39b16e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/services/mssql/mssql_server_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func resourceMsSqlServerRead(d *pluginsdk.ResourceData, meta interface{}) error
if v := props.MinimalTlsVersion; v == nil || *v == "None" {
d.Set("minimum_tls_version", "Disabled")
} else {
d.Set("minimum_tls_version", props.MinimalTlsVersion)
d.Set("minimum_tls_version", string(pointer.From(props.MinimalTlsVersion)))
}

d.Set("public_network_access_enabled", pointer.From(props.PublicNetworkAccess) == servers.ServerPublicNetworkAccessFlagEnabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"time"

"github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v5.0/sql"
"github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v5.0/sql" // nolint: staticcheck
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func resourceMsSqlVirtualNetworkRuleRead(d *pluginsdk.ResourceData, meta interfa
return fmt.Errorf("parsing subnet ID returned by API %q: %+v", props.VirtualNetworkSubnetId, err)
}

d.Set("subnet_id", subnetId)
d.Set("subnet_id", subnetId.ID())
}
}

Expand Down

0 comments on commit e39b16e

Please sign in to comment.