Skip to content

Commit

Permalink
Merge pull request #4234 from stack72/stack72/lookup-correct-resource
Browse files Browse the repository at this point in the history
resource/storage_table: Lookup correct Storage Table URL
  • Loading branch information
tombuildsstuff authored Sep 4, 2019
2 parents b90b776 + 15499f8 commit 72e774d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func resourceArmStorageTableCreate(d *schema.ResourceData, meta interface{}) err

id := client.GetResourceID(accountName, tableName)
if features.ShouldResourcesBeImported() {
existing, err := client.Exists(ctx, *resourceGroup, tableName)
existing, err := client.Exists(ctx, accountName, tableName)
if err != nil {
if !utils.ResponseWasNotFound(existing) {
return fmt.Errorf("Error checking for existence of existing Storage Table %q (Account %q / Resource Group %q): %+v", tableName, accountName, *resourceGroup, err)
Expand Down

0 comments on commit 72e774d

Please sign in to comment.