From 1e03d904ff4e01c6fc9050e7546492c27840bf01 Mon Sep 17 00:00:00 2001 From: kt Date: Thu, 3 Jan 2019 19:11:23 -0800 Subject: [PATCH] fix schema panic: azurerm_snapshot --- azurerm/data_source_snapshot.go | 2 +- azurerm/data_source_snapshot_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azurerm/data_source_snapshot.go b/azurerm/data_source_snapshot.go index d5f7a259877e..99008cc794ad 100644 --- a/azurerm/data_source_snapshot.go +++ b/azurerm/data_source_snapshot.go @@ -24,7 +24,7 @@ func dataSourceArmSnapshot() *schema.Resource { Computed: true, }, "disk_size_gb": { - Type: schema.TypeString, + Type: schema.TypeInt, Computed: true, }, "time_created": { diff --git a/azurerm/data_source_snapshot_test.go b/azurerm/data_source_snapshot_test.go index d6818cde5ade..df5b4fe5df0d 100644 --- a/azurerm/data_source_snapshot_test.go +++ b/azurerm/data_source_snapshot_test.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform/helper/resource" ) -func TestAccDataSourceAzureRMSnapshot_importBasic(t *testing.T) { +func TestAccDataSourceAzureRMSnapshot_basic(t *testing.T) { dataSourceName := "data.azurerm_snapshot.snapshot" ri := acctest.RandInt() @@ -27,7 +27,7 @@ func TestAccDataSourceAzureRMSnapshot_importBasic(t *testing.T) { }) } -func TestAccDataSourceAzureRMSnapshot_importEncryption(t *testing.T) { +func TestAccDataSourceAzureRMSnapshot_encryption(t *testing.T) { dataSourceName := "data.azurerm_snapshot.snapshot" ri := acctest.RandInt() rs := acctest.RandString(4)