Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Nov 18, 2021
1 parent 618988d commit 0b2df84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions internal/services/storage/storage_disks_pool_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ package storage
import (
"context"
"fmt"
"regexp"
"strings"
"time"

"github.com/Azure/azure-sdk-for-go/services/storagepool/mgmt/2021-08-01/storagepool"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
Expand All @@ -16,9 +20,6 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/utils"
"regexp"
"strings"
"time"
)

type DisksPoolResource struct{}
Expand All @@ -45,7 +46,7 @@ func (d DisksPoolResource) Arguments() map[string]*schema.Schema {
validation.StringIsNotEmpty,
validation.StringLenBetween(7, 30),
validation.StringMatch(
regexp.MustCompile("^[A-Za-z\\d][A-Za-z\\d.\\-_]*[A-Za-z\\d_]$"),
regexp.MustCompile(`^[A-Za-z\d][A-Za-z\d.\-_]*[A-Za-z\d_]$`),
"The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.",
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package storage_test
import (
"context"
"fmt"
"testing"

"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/utils"
"testing"
)

type StorageDisksPoolResource struct{}
Expand Down

0 comments on commit 0b2df84

Please sign in to comment.