Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Aug 19, 2020
1 parent 36c7238 commit 2177727
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
)

// TODO: a state migration to patch the ID's

func resourceArmFrontDoorFirewallPolicy() *schema.Resource {
return &schema.Resource{
Create: resourceArmFrontDoorFirewallPolicyCreateUpdate,
Expand Down
4 changes: 2 additions & 2 deletions azurerm/internal/services/frontdoor/parse/frontdoor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewFrontDoorID(resourceGroup, name string) FrontDoorId {
func FrontDoorID(input string) (*FrontDoorId, error) {
frontDoorId, id, err := parseFrontDoorChildResourceId(input)
if err != nil {
return nil, fmt.Errorf("[ERROR] Unable to parse FrontDoor ID %q: %+v", input, err)
return nil, fmt.Errorf("parsing FrontDoor ID %q: %+v", input, err)
}

if err := id.ValidateNoEmptySegments(input); err != nil {
Expand All @@ -35,7 +35,7 @@ func FrontDoorID(input string) (*FrontDoorId, error) {
func FrontDoorIDForImport(input string) (*FrontDoorId, error) {
id, err := azure.ParseAzureResourceID(input)
if err != nil {
return nil, fmt.Errorf("[ERROR] Unable to parse FrontDoor ID %q: %+v", input, err)
return nil, fmt.Errorf("parsing FrontDoor ID %q: %+v", input, err)
}

frontDoorId := FrontDoorId{
Expand Down
2 changes: 1 addition & 1 deletion azurerm/internal/services/frontdoor/validate/name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestAccAzureRMFrontDoorFirewallPolicy_validateName(t *testing.T) {
ExpectError: true,
},
{
Name: "Starst with Numeric",
Name: "Starts with Numeric",
Input: "1WellThisIsAllWrong",
ExpectError: true,
},
Expand Down

0 comments on commit 2177727

Please sign in to comment.