From 63d7099a19d790c380ed7d2bc37d74d48ecc5b08 Mon Sep 17 00:00:00 2001 From: Stuart Leeks Date: Mon, 16 Sep 2019 12:18:33 +0100 Subject: [PATCH] fixup storage client casing --- azurerm/data_source_storage_management_policy.go | 2 +- azurerm/resource_arm_storage_management_policy.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azurerm/data_source_storage_management_policy.go b/azurerm/data_source_storage_management_policy.go index f17b6de659854..32c5732509cc8 100644 --- a/azurerm/data_source_storage_management_policy.go +++ b/azurerm/data_source_storage_management_policy.go @@ -106,7 +106,7 @@ func dataSourceArmStorageManagementPolicy() *schema.Resource { } func dataSourceArmStorageManagementPolicyRead(d *schema.ResourceData, meta interface{}) error { - client := meta.(*ArmClient).storage.ManagementPoliciesClient + client := meta.(*ArmClient).Storage.ManagementPoliciesClient ctx := meta.(*ArmClient).StopContext storageAccountId := d.Get("storage_account_id").(string) diff --git a/azurerm/resource_arm_storage_management_policy.go b/azurerm/resource_arm_storage_management_policy.go index ced90dc7d04b5..d45ab4db682e4 100644 --- a/azurerm/resource_arm_storage_management_policy.go +++ b/azurerm/resource_arm_storage_management_policy.go @@ -125,7 +125,7 @@ func resourceArmStorageManagementPolicy() *schema.Resource { } func resourceArmStorageManagementPolicyCreateOrUpdate(d *schema.ResourceData, meta interface{}) error { - client := meta.(*ArmClient).storage.ManagementPoliciesClient + client := meta.(*ArmClient).Storage.ManagementPoliciesClient ctx := meta.(*ArmClient).StopContext storageAccountId := d.Get("storage_account_id").(string) @@ -166,7 +166,7 @@ func resourceArmStorageManagementPolicyCreateOrUpdate(d *schema.ResourceData, me } func resourceArmStorageManagementPolicyRead(d *schema.ResourceData, meta interface{}) error { - client := meta.(*ArmClient).storage.ManagementPoliciesClient + client := meta.(*ArmClient).Storage.ManagementPoliciesClient ctx := meta.(*ArmClient).StopContext storageAccountId := d.Get("storage_account_id").(string) @@ -197,7 +197,7 @@ func resourceArmStorageManagementPolicyRead(d *schema.ResourceData, meta interfa } func resourceArmStorageManagementPolicyDelete(d *schema.ResourceData, meta interface{}) error { - client := meta.(*ArmClient).storage.ManagementPoliciesClient + client := meta.(*ArmClient).Storage.ManagementPoliciesClient ctx := meta.(*ArmClient).StopContext storageAccountId := d.Get("storage_account_id").(string)