From 322c6ecc4266a657c23012f28a6710042efece96 Mon Sep 17 00:00:00 2001 From: kt Date: Thu, 3 Jan 2019 18:57:29 -0800 Subject: [PATCH] scheme panic:azurerm_storage_account datasource --- azurerm/data_source_storage_account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azurerm/data_source_storage_account.go b/azurerm/data_source_storage_account.go index 8597d12c3c65..c205d36fbba0 100644 --- a/azurerm/data_source_storage_account.go +++ b/azurerm/data_source_storage_account.go @@ -194,9 +194,8 @@ func dataSourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) e d.Set("account_kind", resp.Kind) if sku := resp.Sku; sku != nil { - d.Set("account_type", sku.Name) d.Set("account_tier", sku.Tier) - d.Set("account_replication_type", strings.Split(fmt.Sprintf("%v", sku.Name), "_")[1]) + d.Set("account_replication_type", strings.Split(string(sku.Name), "_")[1]) } if props := resp.AccountProperties; props != nil {