Skip to content

Commit

Permalink
Tidy imports and handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Jul 11, 2019
1 parent 5f6115a commit e57e013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion azurerm/resource_arm_storage_management_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ func resourceArmStorageManagementPolicyCreateOrUpdate(d *schema.ResourceData, me

rules := d.Get("rule").([]interface{})
armRules, err := expandStorageManagementPolicyRules(rules)

if err != nil {
return fmt.Errorf("Error expanding Azure Storage Management Policy rules %q: %+v", storageAccountId, err)
}
parameters.ManagementPolicyProperties = &storage.ManagementPolicyProperties{
Policy: &storage.ManagementPolicySchema{
Rules: armRules,
Expand Down
5 changes: 0 additions & 5 deletions azurerm/resource_arm_storage_management_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ package azurerm

import (
"fmt"
// "net/http"
// "os"
// "regexp"
"testing"

// "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"

"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
// "github.com/hashicorp/terraform/terraform"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
)

Expand Down

0 comments on commit e57e013

Please sign in to comment.