From 75c1475cc1940c7115a09dc31b3c17b5905a54a8 Mon Sep 17 00:00:00 2001 From: djworth Date: Tue, 11 Aug 2015 08:27:32 -0400 Subject: [PATCH] Convert int to int64 when building the cluster.NodeConfig struct related to issue https://github.com/hashicorp/terraform/issues/2901 --- builtin/providers/google/resource_container_cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/google/resource_container_cluster.go b/builtin/providers/google/resource_container_cluster.go index be9573813..68c0b96ad 100644 --- a/builtin/providers/google/resource_container_cluster.go +++ b/builtin/providers/google/resource_container_cluster.go @@ -253,7 +253,7 @@ func resourceContainerClusterCreate(d *schema.ResourceData, meta interface{}) er } if v, ok = nodeConfig["disk_size_gb"]; ok { - cluster.NodeConfig.DiskSizeGb = v.(int64) + cluster.NodeConfig.DiskSizeGb = int64(v.(int)) } if v, ok := nodeConfig["oauth_scopes"]; ok {