Skip to content

Commit

Permalink
Add missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Sep 2, 2019
1 parent c3427b9 commit e4fa383
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azurerm/resource_arm_storage_management_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,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{
Expand Down

0 comments on commit e4fa383

Please sign in to comment.