Skip to content

Commit

Permalink
Convert int to int64 when building the cluster.NodeConfig struct
Browse files Browse the repository at this point in the history
related to issue hashicorp/terraform#2901
  • Loading branch information
djworth committed Aug 11, 2015
1 parent 70c24b0 commit 1920934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1920934

Please sign in to comment.