This commit is contained in:
Dave Cunningham 2015-08-19 02:57:04 -04:00
parent b2731e2470
commit aa45266fdb
2 changed files with 2 additions and 1 deletions

View File

@ -261,7 +261,7 @@ func buildDisks(d *schema.ResourceData, meta interface{}) ([]*compute.AttachedDi
disk.InitializeParams.DiskName = v.(string) disk.InitializeParams.DiskName = v.(string)
} }
if v, ok := d.GetOk(prefix + ".disk_size_gb"); ok { if v, ok := d.GetOk(prefix + ".disk_size_gb"); ok {
disk.InitializeParams.DiskSizeGb = v.(int64) disk.InitializeParams.DiskSizeGb = int64(v.(int))
} }
disk.InitializeParams.DiskType = "pd-standard" disk.InitializeParams.DiskType = "pd-standard"
if v, ok := d.GetOk(prefix + ".disk_type"); ok { if v, ok := d.GetOk(prefix + ".disk_type"); ok {

View File

@ -269,6 +269,7 @@ resource "google_compute_instance_template" "foobar" {
disk { disk {
source_image = "debian-7-wheezy-v20140814" source_image = "debian-7-wheezy-v20140814"
auto_delete = true auto_delete = true
disk_size_gb = 100
boot = true boot = true
} }