From 1be2ffaafe3dbd8ee9422846a711bc4baf68503f Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 11 Jul 2019 19:51:27 +0100 Subject: [PATCH] fixing the tests --- azurerm/resource_arm_storage_queue.go | 2 +- azurerm/resource_arm_storage_queue_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azurerm/resource_arm_storage_queue.go b/azurerm/resource_arm_storage_queue.go index 2b08f2e16a51e..456ed7938169a 100644 --- a/azurerm/resource_arm_storage_queue.go +++ b/azurerm/resource_arm_storage_queue.go @@ -152,7 +152,7 @@ func resourceArmStorageQueueUpdate(d *schema.ResourceData, meta interface{}) err return fmt.Errorf("Error setting MetaData for Queue %q (Storage Account %q): %s", id.QueueName, id.AccountName, err) } - return resourceArmStorageQueueRead(d, metaDataRaw) + return resourceArmStorageQueueRead(d, meta) } func resourceArmStorageQueueRead(d *schema.ResourceData, meta interface{}) error { diff --git a/azurerm/resource_arm_storage_queue_test.go b/azurerm/resource_arm_storage_queue_test.go index 655d133c30de5..3717237cfaef5 100644 --- a/azurerm/resource_arm_storage_queue_test.go +++ b/azurerm/resource_arm_storage_queue_test.go @@ -259,7 +259,7 @@ resource "azurerm_storage_queue" "test" { name = "mysamplequeue-%d" storage_account_name = "${azurerm_storage_account.test.name}" - metadata { + metadata = { hello = "world" } } @@ -275,7 +275,7 @@ resource "azurerm_storage_queue" "test" { name = "mysamplequeue-%d" storage_account_name = "${azurerm_storage_account.test.name}" - metadata { + metadata = { hello = "world" rick = "morty" }