Skip to content

Commit

Permalink
Fixing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jul 12, 2019
1 parent 38878fe commit afb8ee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions azurerm/resource_arm_storage_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/storage"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/queue/queues"
Expand Down Expand Up @@ -38,7 +37,7 @@ func resourceArmStorageQueue() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validate.NoEmptyStrings,
ValidateFunc: validateArmStorageAccountName,
},

"resource_group_name": azure.SchemaResourceGroupNameDeprecated(),
Expand Down Expand Up @@ -113,7 +112,7 @@ func resourceArmStorageQueueCreate(d *schema.ResourceData, meta interface{}) err
}
}

if _, err := client.Create(ctx, accountName, accountName, metaData); err != nil {
if _, err := client.Create(ctx, accountName, queueName, metaData); err != nil {
return fmt.Errorf("Error creating Queue %q (Account %q): %+v", queueName, accountName, err)
}

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ resource "azurerm_storage_queue" "test" {
metadata = {
hello = "world"
rick = "morty"
rick = "M0rty"
}
}
`, template, rInt)
Expand Down

0 comments on commit afb8ee1

Please sign in to comment.