Convert int to int64 when building the cluster.NodeConfig struct

related to issue https://github.com/hashicorp/terraform/issues/2901
This commit is contained in:
djworth 2015-08-11 08:27:32 -04:00
parent 8df1decd71
commit 75c1475cc1
1 changed files with 1 additions and 1 deletions

View File

@ -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 {